
(function (global) {
    // 定义一个对象来存储导出的内容
    var exports = {};


    var moduleFunction  = function(e){
        var t = {};

        function n(o) {
            if (t[o]) return t[o].exports;
            var r = t[o] = {
                i: o,
                l: !1,
                exports: {}
            };
            return e[o].call(r.exports, r, r.exports, n), r.l = !0, r.exports
        }
        return n.m = e, n.c = t, n.d = function (e, t, o) {
            n.o(e, t) || Object.defineProperty(e, t, {
                enumerable: !0,
                get: o
            })
        }, n.r = function (e) {
            "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
                value: "Module"
            }), Object.defineProperty(e, "__esModule", {
                value: !0
            })
        }, n.t = function (e, t) {
            if (1 & t && (e = n(e)), 8 & t) return e;
            if (4 & t && "object" == typeof e && e && e.__esModule) return e;
            var o = Object.create(null);
            if (n.r(o), Object.defineProperty(o, "default", {
                    enumerable: !0,
                    value: e
                }), 2 & t && "string" != typeof e)
                for (var r in e) n.d(o, r, function (t) {
                    return e[t]
                }.bind(null, r));
            return o
        }, n.n = function (e) {
            var t = e && e.__esModule ? function () {
                return e.default
            } : function () {
                return e
            };
            return n.d(t, "a", t), t
        }, n.o = function (e, t) {
            return Object.prototype.hasOwnProperty.call(e, t)
        }, n.p = "", n(n.s = 4)
    }
    exports.qingjs  =  moduleFunction([
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.MigrateLaunchAppType = t.MigrateType = t.SwitchGameEnum = t.LaunchQueryKey = t.AccountState = t.BillboardPopupFrequency = t.BillboardPopupTiming = t.SDKType = t.RealNamePopupTime = t.H5GuideType = t.OpenCustomerServiceType = t.PayInfoType = t.ResponseCode = t.PayState = t.OSName = t.OSCodeEnum = t.StoreKey = t.CXSDK_VERSION = void 0, t.CXSDK_VERSION = "2.0.0",
                function (e) {
                    e.FENBAO = "CX_FENBAO", e.FENBAO_IOS = "CX_FENBAO_IOS", e.FENBAO_ANDROID = "CX_FENBAO_ANDROID", e.FENBAO_ANDROID_V1 = "CX_FENBAP_ANDROID", e.AD_CLICK_ID = "CX_AD_CLICK_ID", e.IN_LIST = "CX_IN_LIST", e.OPENID = "CX_OPEN_ID", e.CX_NOT_FOUND_GAME_KEY_SELECT_OS = "CX_NOT_FOUND_GAME_KEY_SELECT_OS", e.BILLBOARD_LAST_SHOW_TIME_PREFIX = "CX_BOARD_LAST_SHOW_DATE:", e.ROLE_INFO = "CX_ROLE_INFO", e.DEVICE_ID = "CX_DEVICE_ID", e.CXUI_VIP_MENU_CLICK_DATE = "CXUI_VIP_MENU_CLICK_DATE"
                }(t.StoreKey || (t.StoreKey = {})),
                function (e) {
                    e[e.OS_CODE_IOS = 0] = "OS_CODE_IOS", e[e.OS_CODE_ANDROID = 1] = "OS_CODE_ANDROID", e[e.OS_CODE_WINDOWS = 2] = "OS_CODE_WINDOWS", e[e.OS_CODE_MACOS = 3] = "OS_CODE_MACOS", e[e.OS_CODE_UNKNOWN = 1e3] = "OS_CODE_UNKNOWN"
                }(t.OSCodeEnum || (t.OSCodeEnum = {})),
                function (e) {
                    e.ANDROID = "Android", e.IOS = "iOS"
                }(t.OSName || (t.OSName = {})),
                function (e) {
                    e[e.SUCCESS = 2] = "SUCCESS"
                }(t.PayState || (t.PayState = {})),
                function (e) {
                    e[e.SDK_PAY_MINORS_LIMIT = 2011] = "SDK_PAY_MINORS_LIMIT", e[e.SDK_PAY_MINORS_LIMIT_TOAST = 2012] = "SDK_PAY_MINORS_LIMIT_TOAST", e[e.NEED_LOGIN = 4003] = "NEED_LOGIN"
                }(t.ResponseCode || (t.ResponseCode = {})),
                function (e) {
                    e[e.PAY_INFO_TYPE_HTML = 0] = "PAY_INFO_TYPE_HTML", e[e.PAY_INFO_TYPE_STRING = 1] = "PAY_INFO_TYPE_STRING", e[e.PAY_INFO_TYPE_URL = 2] = "PAY_INFO_TYPE_URL", e[e.PAY_INFO_TYPE_IAP = 3] = "PAY_INFO_TYPE_IAP", e[e.PAY_INFO_TYPE_QR_CODE = 4] = "PAY_INFO_TYPE_QR_CODE", e[e.PAY_INFO_TYPE_MINI_PROGRAM = 5] = "PAY_INFO_TYPE_MINI_PROGRAM", e[e.PAY_INFO_TYPE_QR_CODE_WITH_CLIPBOARD = 6] = "PAY_INFO_TYPE_QR_CODE_WITH_CLIPBOARD", e[e.PAY_INFO_TYPE_ORDER_FINISH = 7] = "PAY_INFO_TYPE_ORDER_FINISH", e[e.PAY_INFO_TYPE_MSG = 8] = "PAY_INFO_TYPE_MSG"
                }(t.PayInfoType || (t.PayInfoType = {})),
                function (e) {
                    e[e.DIRECT = 0] = "DIRECT", e[e.QR_CODE = 1] = "QR_CODE", e[e.PREVIEW_WXA_CODE = 2] = "PREVIEW_WXA_CODE"
                }(t.OpenCustomerServiceType || (t.OpenCustomerServiceType = {})),
                function (e) {
                    e[e.CUSTOMER_MESSAGE = 1] = "CUSTOMER_MESSAGE", e[e.PREVIEW_IMAGE = 2] = "PREVIEW_IMAGE", e[e.SHARE_IMAGE = 3] = "SHARE_IMAGE", e[e.MINI_PROGRAM = 4] = "MINI_PROGRAM", e[e.MINI_PROGRAM_PHONE_LOGIN = 5] = "MINI_PROGRAM_PHONE_LOGIN", e[e.SAVE_IMAGE = 6] = "SAVE_IMAGE"
                }(t.H5GuideType || (t.H5GuideType = {})),
                function (e) {
                    e[e.GOVERNMENT_STANDARD = 1] = "GOVERNMENT_STANDARD", e[e.BEFORE_PAY = 2] = "BEFORE_PAY", e[e.AFTER_PAY = 3] = "AFTER_PAY"
                }(t.RealNamePopupTime || (t.RealNamePopupTime = {})),
                function (e) {
                    e.JS_WEIXIN_MINI_GAME = "js-wx-mini-game", e.JS_H5 = "js-h5", e.IOS_NATIVE = "ios-native", e.ANDROID_NATIVE = "android-native"
                }(t.SDKType || (t.SDKType = {})),
                function (e) {
                    e.LOGIN = "login", e.ENTER_GAME = "entergame", e.LAUNCHED = "launched"
                }(t.BillboardPopupTiming || (t.BillboardPopupTiming = {})),
                function (e) {
                    e.ONLY_ONCE = "only_once", e.ONCE_A_DAY = "once_a_day", e.ALWAYS = "always"
                }(t.BillboardPopupFrequency || (t.BillboardPopupFrequency = {})),
                function (e) {
                    e[e.VALID = 0] = "VALID", e[e.BLOCK = 1] = "BLOCK"
                }(t.AccountState || (t.AccountState = {})),
                function (e) {
                    e.LAUNCH_ACTION = "cx_launch_action"
                }(t.LaunchQueryKey || (t.LaunchQueryKey = {})),
                function (e) {
                    e[e.Main = 1] = "Main", e[e.MiniGame = 2] = "MiniGame"
                }(t.SwitchGameEnum || (t.SwitchGameEnum = {})),
                function (e) {
                    e[e.MIGRATE_TYPE_ACCOUNT_CENTER = 0] = "MIGRATE_TYPE_ACCOUNT_CENTER", e[e.MIGRATE_TYPE_DIRECT = 1] = "MIGRATE_TYPE_DIRECT"
                }(t.MigrateType || (t.MigrateType = {})),
                function (e) {
                    e[e.LAUNCH_APP_TYPE_QR_CODE = 1] = "LAUNCH_APP_TYPE_QR_CODE", e[e.LAUNCH_APP_TYPE_THIRD_APP = 2] = "LAUNCH_APP_TYPE_THIRD_APP", e[e.LAUNCH_APP_TYPE_QR_CODE_WITH_CLIPBOARD = 4] = "LAUNCH_APP_TYPE_QR_CODE_WITH_CLIPBOARD", e[e.LAUNCH_APP_TYPE_OPENCUSTOMERSERVICE = 5] = "LAUNCH_APP_TYPE_OPENCUSTOMERSERVICE"
                }(t.MigrateLaunchAppType || (t.MigrateLaunchAppType = {}))
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            });
            var o = n(0),
                r = function () {
                    function e() {}
                    return e.prototype.generateUUID = function () {
                        var e = (new Date).getTime();
                        return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (t) {
                            var n = (e + 16 * Math.random()) % 16 | 0;
                            return e = Math.floor(e / 16), ("x" === t ? n : 3 & n | 8).toString(16)
                        })
                    }, e.prototype.getOsCodeByName = function (e) {
                        return "Android" === e ? o.OSCodeEnum.OS_CODE_ANDROID : e.toLowerCase().indexOf("win") >= 0 ? o.OSCodeEnum.OS_CODE_WINDOWS : "OSX" === e || "macOS" === e ? o.OSCodeEnum.OS_CODE_MACOS : "iOS" === e ? o.OSCodeEnum.OS_CODE_IOS : o.OSCodeEnum.OS_CODE_UNKNOWN
                    }, e.prototype.getOsNameByCode = function (e) {
                        return e === o.OSCodeEnum.OS_CODE_ANDROID ? "Android" : e === o.OSCodeEnum.OS_CODE_WINDOWS ? "Windows" : e === o.OSCodeEnum.OS_CODE_MACOS ? "macOS" : e === o.OSCodeEnum.OS_CODE_IOS ? "iOS" : "UNKNOWN"
                    }, e.prototype.getOsTipsByCode = function (e) {
                        return e === o.OSCodeEnum.OS_CODE_ANDROID ? "安卓" : e === o.OSCodeEnum.OS_CODE_WINDOWS ? "Windows" : e === o.OSCodeEnum.OS_CODE_MACOS ? "macOS" : e === o.OSCodeEnum.OS_CODE_IOS ? "iOS" : "UNKNOWN"
                    }, e.prototype.queryParams = function (e) {
                        var t = [],
                            n = function (n) {
                                if (!e.hasOwnProperty(n)) return "continue";
                                var o = e[n];
                                if (!o) return "continue";
                                o.constructor === Array ? o.forEach(function (e) {
                                    t.push(encodeURIComponent(n) + "[]=" + encodeURIComponent(e))
                                }) : t.push(encodeURIComponent(n) + "=" + encodeURIComponent(o))
                            };
                        for (var o in e) n(o);
                        return t.length ? "" + t.join("&") : ""
                    }, e.prototype.currentDate = function () {
                        var e = new Date,
                            t = e.getFullYear(),
                            n = e.getMonth() + 1,
                            o = e.getDate(),
                            r = n + "";
                        n < 10 && (r = "0" + n);
                        var i = o + "";
                        return o < 10 && (i = "0" + o), t + "-" + r + "-" + i
                    }, e.prototype.isValidPhoneNum = function (e) {
                        var t = !1,
                            n = "";
                        return "" === e || null === e ? n = "手机号码不能为空！" : 11 !== e.length ? n = "请输入11位手机号码！" : "1" !== e.substring(0, 1) ? n = "请输入有效的手机号码！" : t = !0, {
                            valid: t,
                            msg: n
                        }
                    }, e
                }();
            t.default = new r
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.NetWorkRequest = void 0;
            var o = function () {
                function e() {}
                return e.prototype.requestCXServer = function (e, t, n) {
                    void 0 === n && (n = 0);
                    var o = this;
                    return new Promise(function (r, i) {
                        if (n > 2) return i(), void console.warn("requestCXServer fail:" + e);
                        window['wx'] ?.request({
                            url: e,
                            method: "POST",
                            data: {
                                data: t
                            },
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            success: function (e) {
                                r(e)
                            },
                            fail: function (s) {
                                console.log("window['wx']?.request fail"), o.requestCXServer(e, t, n + 1).then(r).catch(i)
                            },
                            complete: function () {}
                        })
                    })
                }, e.prototype.getRequest = function (e, t, n) {
                    var o = this;
                    return void 0 === n && (n = 0), new Promise(function (r, i) {
                        if (n > 2) return i(), void console.warn("normalGet fail:" + e);
                        window['wx'] ?.request({
                            url: e,
                            data: t,
                            method: "GET",
                            dataType: "json",
                            success: function (e) {
                                r(e)
                            },
                            fail: function (s) {
                                console.log("window['wx']?.request fail"), o.getRequest(e, t, n + 1).then(r).catch(i)
                            },
                            complete: function () {}
                        })
                    })
                }, e.prototype.postRequest = function (e, t, n) {
                    var o = this;
                    return void 0 === n && (n = 0), new Promise(function (r, i) {
                        if (n > 2) return i(), void console.warn("normalPost fail:" + e);
                        window['wx'] ?.request({
                            url: e,
                            data: t,
                            method: "POST",
                            dataType: "json",
                            success: function (e) {
                                r(e)
                            },
                            fail: function (s) {
                                console.log("window['wx']?.request fail"), o.postRequest(e, t, n + 1).then(r).catch(i)
                            },
                            complete: function () {}
                        })
                    })
                }, e
            }();
            t.NetWorkRequest = o, t.default = new o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CommonData = void 0;
            var o = function () {
                return function () {}
            }();
            t.CommonData = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.instance = void 0;
            var o = n(5),
                r = n(13);
            (new r.CXChannelAppSetter).setChannelApp(new o.default), t.instance = new r.SDKWrapper, t.instance.channelName = "cxwxminigame"
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            });
            var o = n(6),
                r = n(7),
                i = n(8),
                s = n(9),
                a = n(0),
                u = n(10),
                c = (n(11), n(1)),
                p = function () {
                    function e() {
                        this.firstRecharge = !1, this.systemInfo = window['wx'] ?.getSystemInfoSync()||{system: "iOS 10.0.1"}
                    }
                    return e.prototype.log = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        this.sdk && this.sdk.log.apply(this.sdk, arguments)
                    }, e.prototype.showMenu = function (e) {
                        var t;
                        if (null === (t = this.sdk.uiApp) || void 0 === t || t.showMenu(e), GameGlobal.Laya) try {
                            var o = n(12);
                            if (window['wx']) {

                                window['wx'].showModal = function (e) {
                                    (new o.default).popup(e)
                                }
                            }
                        } catch (e) {
                            console.error("replace wx showModal error"), console.error(e)
                        }
                    }, e.prototype.canPay = function () {
                        var e = this.systemInfo.system.split(" ")[0];
                        return !(!this.sdk.conf.MIDAS_PAY_USABLE || "Android" != e && this.sdk.commonData.os != a.OSCodeEnum.OS_CODE_WINDOWS)
                    }, e.prototype.afterPay = function () {}, e.prototype.replaceSDKShowModal = function () {}, e.prototype.beforeInit = function () {
                        var e = this;
                        return new Promise(function (t, n) {
                            e.replaceSDKShowModal(), e.sdk.getOpenID().then(function (n) {
                                var o = e.systemInfo.system.split(" ")[0],
                                    r = c.default.getOsCodeByName(o);
                                e.sdk.commonData.uuid = n, e.sdk.commonData.deviceid1 = n, e.sdk.commonData.deviceid2 = n, r === a.OSCodeEnum.OS_CODE_ANDROID && (e.sdk.commonData.imsi = n), t()
                            }).catch(function () {
                                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                n.apply(void 0, e)
                            })
                        })
                    }, e.prototype.beforeLogin = function () {
                        var t = this;
                        return new Promise(function (n, o) {
                            t.sdk.loginChannelUID = t.sdk.openID, t.sdk.loginChannelToken = "", t.sdk.loginChannel = e.LOGINCHANNEL, n()
                        })
                    }, e.prototype.beforeReportRoleInfo = function (e) {}, e.prototype.name = function () {
                        return "ChannelCXWXMiniGameApp"
                    }, e.prototype.onInit = function (e) {}, e.prototype.onLogin = function (e) {
                        this.thirdLoginExtInfo = e.third_login_ext, this.firstRecharge = e.first_recharge
                    }, e.prototype.onReportRoleInfo = function (e) {}, e.prototype.onSDKCreate = function () {}, e.prototype.setSDK = function (e) {
                        this.sdk = e, this.sdk.wechatADApp = new o.WechatADApp, this.sdk.pushApp(this.sdk.wechatADApp), this.sdk.requestUserInfoApp = new r.RequestUserInfoApp, this.sdk.pushApp(this.sdk.requestUserInfoApp), this.sdk.pushApp(new i.SubscribeMessageApp), this.sdk.pushApp(new s.RefreshUserInfoApp), this.sdk.otherParameterApp = new u.OtherParameterApp, this.sdk.pushApp(this.sdk.otherParameterApp)
                    }, e.LOGINCHANNEL = 44, e
                }();
            t.default = p
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.WechatADApp = void 0;
            var o = function () {
                function e() {
                    this.videoAdValid = !1
                }
                return e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.onInit = function (e) {
                    this.initResonse = e, this.gameSettings = e.game_settings, this.setVideoAdUnitID(this.gameSettings.videoADUnitID)
                }, e.prototype.videoAdOnLoad = function () {
                    this.videoAdValid = !0
                }, e.prototype.videoAdOnError = function (e) {
                    this.videoAdValid = !1, console.log("微信广告加载失败" + e.errMsg + e.errCode)
                }, e.prototype.videoAdOnClose = function (e, t) {
                    this.videoAdValid = !0, t && t.isEnded || void 0 === t ? e(!0) : e(!1)
                }, e.prototype.setVideoAdUnitID = function (e) {
                    if (this.videoAdUnitID = e, null != this.videoAdUnitID && "" != this.videoAdUnitID && window['wx'] ?.createRewardedVideoAd) {
                        this.videoAdValid = !0;
                        var t = window['wx'] ?.createRewardedVideoAd({
                            adUnitId: this.videoAdUnitID,
                            multiton: !0
                        });
                        this.videoAd = t, t.offLoad(this.videoAdOnLoad.bind(this)), t.onLoad(this.videoAdOnLoad.bind(this)), t.offError(this.videoAdOnError.bind(this)), t.onError(this.videoAdOnError.bind(this));
                        try {
                            this.videoAd.load()
                        } catch (e) {}
                    }
                }, e.prototype.isVideoAdValid = function () {
                    return this.videoAdValid
                }, e.prototype.showVideoAd = function (e) {
                    if (window['wx'] ?.createRewardedVideoAd && null != this.videoAdUnitID && "" != this.videoAdUnitID) {
                        if (0 == this.videoAdValid) return window['wx'] ?.showToast({
                            title: "暂无广告",
                            icon: "none"
                        }), void e(!1);
                        this.videoAd.offClose(), this.videoAd.onClose(this.videoAdOnClose.bind(this, e));
                        try {
                            this.videoAd.show()
                        } catch (e) {
                            this.videoAd.show()
                        }
                    }
                }, e.prototype.name = function () {
                    return "WechatADApp"
                }, e
            }();
            t.WechatADApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.RequestUserInfoApp = void 0;
            var o = function () {
                function e() {
                    this.isReviewVer = !1, this.requestUserInfo = !1, this.forceGetUserInfo = !1,
                     this.systemInfo = window['wx'] ?.getSystemInfoSync()||{system: "iOS 10.0.1"}, this.onUserInfoBtnTapCallbacks = []
                }
                return e.prototype.name = function () {
                    return "RequestUserInfoApp"
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.addOnUserInfoBtnTapCallback = function (e) {
                    this.onUserInfoBtnTapCallbacks.push(e)
                }, e.prototype.isNeedRequestUserInfo = function () {
                    return this.isReviewVer || this.requestUserInfo || this.sdk.inListApp.inList
                }, e.prototype.isForceRequestUserInfo = function () {
                    return this.isReviewVer || this.forceGetUserInfo || this.sdk.inListApp.inList
                }, e.prototype.onGetUserInfo = function (e) {
                    var t = this;
                    if ("getUserInfo:ok" == e.errMsg) {
                        var n = {
                                game_key: this.sdk.commonData.game_key,
                                user_info: e.userInfo,
                                encrypted_data: e.encryptedData,
                                iv: e.iv,
                                openid: this.sdk.openID
                            },
                            o = this.sdk.urlManager.reportWXUserInfoUrl;
                        return new Promise(function (e, r) {
                            t.sdk.request(o, n, !1).then(function () {
                                e()
                            }).catch(function (e) {
                                r(e.errMsg)
                            })
                        })
                    }
                }, e.prototype.getUserInfoSuccess = function (e) {
                    var t = e.userInfo,
                        n = t.nickName,
                        o = t.avatarUrl,
                        r = t.gender,
                        i = t.city;
                    return (n.toLowerCase().indexOf("minigame") > -1 || n.toLowerCase().indexOf("tencent") > -1 || n.toLowerCase().indexOf("test_") > -1 || n.toLowerCase().indexOf("wetest") > -1) && (this.sdk.inListApp.inList = !0), this.sdk.commonData && (this.sdk.commonData.devicename = n + "|" + r + "|" + o, this.sdk.commonData.localInfo = i, this.sdk.commonData.gender = r), this.onGetUserInfo(e)
                }, e.prototype.authTap = function (e, t) {
                    console.log(t);
                    var n = !1;
                    for (var o in "getUserInfo:ok" == t.errMsg && (this.getUserInfoSuccess(t).then(), n = !0), this.onUserInfoBtnTapCallbacks) {
                        var r = this.onUserInfoBtnTapCallbacks[o];
                        r && r(t)
                    }
                    this.isForceRequestUserInfo() ? n && e.destroy() : e.destroy()
                }, e.prototype.createUserInfoButton = function () {
                    var e = this,
                        t = this;
                    this.isNeedRequestUserInfo() && (window['wx'] ?.createUserInfoButton ? window['wx'] ?.getSetting({
                        success: function (n) {
                            if (n.authSetting["scope.userInfo"]) window['wx'] ?.getUserInfo({
                                withCredentials: !0,
                                success: function (e) {
                                    t.getUserInfoSuccess(e).then()
                                },
                                complete: function () {}
                            });
                            else {
                                var o = window['wx'] ?.createUserInfoButton({
                                    type: "text",
                                    text: "",
                                    withCredentials: !0,
                                    style: {
                                        left: 0,
                                        top: 0,
                                        width: e.systemInfo.screenWidth,
                                        height: e.systemInfo.screenHeight,
                                        lineHeight: 40,
                                        backgroundColor: "#64646400",
                                        textAlign: "center",
                                        fontSize: 16,
                                        borderRadius: 4
                                    }
                                });
                                o.onTap(e.authTap.bind(e, o))
                            }
                        },
                        fail: function (e) {
                            console.log("getSetting fail" + e)
                        }
                    }) : window['wx'] ?.getUserInfo({
                        withCredentials: !0,
                        success: function (e) {
                            t.getUserInfoSuccess(e).then()
                        },
                        complete: function () {}
                    }))
                }, e.prototype.onSDKCreate = function () {
                    var e = this;
                    window['wx'] ?.getSetting({
                        success: function (t) {
                            t.authSetting["scope.userInfo"] && window['wx'] ?.getUserInfo({
                                withCredentials: !0,
                                success: function (t) {
                                    e.getUserInfoSuccess(t).then()
                                },
                                complete: function () {}
                            })
                        }
                    })
                }, e.prototype.onInit = function (e) {
                    this.initResponse = e, this.gameSettings = e.game_settings, this.isReviewVer = e.is_review_ver, this.requestUserInfo = this.gameSettings.SHOW_USER_INFO_BTN, this.forceGetUserInfo = this.gameSettings.FORCE_GET_USER_INFO, this.createUserInfoButton()
                }, e
            }();
            t.RequestUserInfoApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.SubscribeMessageApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "SubscribeMessageApp"
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.requestSubscribeMessage = function () {
                    var e = this;
                    if (this.sdk.log("requestSubscribeMessage"), !this.thirdLoginExtInfo) return Promise.resolve(!1);
                    if (!this.thirdLoginExtInfo.sub_msg_tmpl_ids) return Promise.resolve(!1);
                    var t = this.thirdLoginExtInfo.sub_msg_tmpl_ids;
                    return console.log(t), t.length <= 0 ? Promise.resolve(!1) : new Promise(function (n) {
                        window['wx'] ?.requestSubscribeMessage ? window['wx'] ?.requestSubscribeMessage({
                            tmplIds: t,
                            success: function (t) {
                                e.sdk.log("sub success"), e.sdk.log(t), e.subMsgSuccess(t), n(!0)
                            },
                            fail: function (t) {
                                e.sdk.log("sub fail"), e.sdk.log(t), n(!1)
                            }
                        }) : n(!1)
                    })
                }, e.prototype.subMsgSuccess = function (e) {
                    var t = this,
                        n = {
                            game_key: this.sdk.commonData.game_key,
                            openid: this.sdk.openID,
                            data: e
                        },
                        o = this.sdk.urlManager.wxSubMsgSuccessUrl;
                    this.sdk.request(o, n, !1).then(function (e) {
                        t.thirdLoginExtInfo.sub_msg_tmpl_ids = e.sub_msg_tmpl_ids
                    }).catch(function (e) {})
                }, e.prototype.onSDKCreate = function () {}, e.prototype.onLogin = function (e) {
                    this.thirdLoginExtInfo = e.third_login_ext
                }, e.prototype.beforeReportRoleInfo = function (e) {
                    var t = this;
                    if (console.warn(e), "entergame" === e.reportType) {
                        var n = function () {
                            window['wx'] ?.offTouchEnd(n), t.requestSubscribeMessage()
                        };
                        console.warn("call onTouchEnd"), window['wx'] ?.onTouchEnd(n)
                    }
                }, e.prototype.onPaySuccess = function (e) {
                    var t = this,
                        n = function () {
                            window['wx'] ?.offTouchEnd(n), t.requestSubscribeMessage()
                        };
                    console.log("call onTouchEnd"), window['wx'] ?.onTouchEnd(n)
                }, e.prototype.sub = function (e) {
                    var t = this,
                        n = e.slice(0, 3);
                    return new Promise(function (e) {
                        window['wx'] ?.requestSubscribeMessage ? window['wx'] ?.requestSubscribeMessage({
                            tmplIds: n,
                            success: function (n) {
                                t.sdk.log("sub success"), t.sdk.log(n), t.subMsgSuccess(n), e()
                            },
                            fail: function (n) {
                                t.sdk.log("sub fail"), t.sdk.log(n), e()
                            }
                        }) : e()
                    })
                }, e.prototype.subAll = function (e, t) {
                    var n = this;
                    return void 0 === t && (t = 0), new Promise(function (o) {
                        n.sub(e.slice(t)).then(function () {
                            var r = t + 3;
                            r < e.length ? n.subAll(e, r).then(o) : o()
                        })
                    })
                }, e.prototype.checkAllAccept = function (e) {
                    return void 0 === e && (e = void 0), e || (e = this.thirdLoginExtInfo.all_sub_msg_tmpl_ids), e ? new Promise(function (t) {
                        window['wx'] ?.getSetting({
                            withSubscriptions: !0,
                            success: function (n) {
                                if (console.log(n), n.subscriptionsSetting.mainSwitch) {
                                    for (var o = 0, r = e; o < r.length; o++) {
                                        var i = r[o];
                                        if ("accept" !== n.subscriptionsSetting.itemSettings[i]) return void t(!1)
                                    }
                                    t(!0)
                                } else t(!1)
                            },
                            fail: function (e) {
                                console.log(e), t(!1)
                            }
                        })
                    }) : Promise.resolve(!1)
                }, e.prototype.subscribeAll = function (e) {
                    return void 0 === e && (e = void 0), e || (e = this.thirdLoginExtInfo.all_sub_msg_tmpl_ids), this.subAll(e)
                }, e
            }();
            t.SubscribeMessageApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.RefreshUserInfoApp = void 0;
            var o = n(0),
                r = function () {
                    function e() {}
                    return e.prototype.name = function () {
                        return "RefreshUserInfoApp"
                    }, e.prototype.exit = function () {
                        this.refreshTimer && clearInterval(this.refreshTimer), window['wx'] ?.showToast({
                            title: "请重新登录游戏",
                            icon: "error"
                        }), window['wx'] ?.exitMiniProgram({
                            fail: function (e) {
                                console.log(e)
                            }
                        })
                    }, e.prototype.refreshUserInfo = function () {
                        var e = this;
                        if (this.loginResponse) {
                            var t = this.sdk.urlManager.refreshUserInfoUrl;
                            this.sdk.request(t, {}).then(function (t) {
                                t.real_name_info && (e.sdk.userInfo.realNameInfo = t.real_name_info), t.bind_phone && (e.sdk.userInfo.phone = t.bind_phone), null != t.account_state && t.account_state == o.AccountState.BLOCK && e.exit()
                            }).catch(function (t) {
                                e.sdk.log(t.errMsg)
                            })
                        }
                    }, e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.onLogin = function (e) {
                        this.loginResponse = e, window['wx'] ?.onShow && window['wx'] ?.onShow(this.refreshUserInfo.bind(this));
                        this.refreshTimer = setInterval(this.refreshUserInfo.bind(this), 6e4)
                    }, e
                }();
            t.RefreshUserInfoApp = r
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.OtherParameterApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.onInit = function (e) {
                    this.initResponse = e
                }, e.prototype.getParameter = function (e) {
                    return this.initResponse.game_diy_param[e]
                }, e.prototype.name = function () {
                    return "OtherParameterApp"
                }, e
            }();
            t.OtherParameterApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            });
            var o = window['wx'] ?.getRealtimeLogManager ? window['wx'] ?.getRealtimeLogManager() : null,
                r = function () {
                    function e() {}
                    return e.prototype.compareVersion = function (e, t) {
                        var n = e.split("."),
                            o = t.split("."),
                            r = Math.max(n.length, o.length);
                        if (n.length < r)
                            for (var i = r - n.length, s = 0; s < i; s++) n.push("0");
                        if (n.length < r)
                            for (i = r - o.length, s = 0; s < i; s++) o.push("0");
                        for (s = 0; s < r; s++) {
                            var a = parseInt(n[s]),
                                u = parseInt(o[s]);
                            if (a > u) return 1;
                            if (a < u) return -1
                        }
                        return 0
                    }, e.prototype.clearFileSystem = function () {
                        var e = window['wx'] ?.getFileSystemManager();
                        return new Promise(function (t) {
                            e.readdir({
                                dirPath: "" + window['wx'] ?.env.USER_DATA_PATH,
                                success: function (n) {
                                    for (var o = n.files.length, r = 0, i = function () {
                                            ++r >= o && t()
                                        }, s = 0, a = n.files; s < a.length; s++) {
                                        var u = a[s],
                                            c = window['wx'] ?.env.USER_DATA_PATH + "/" + u;
                                        e.statSync(c, !1).isDirectory() ? e.rmdir({
                                            dirPath: c,
                                            recursive: !0,
                                            fail: function (e) {
                                                console.error(e)
                                            },
                                            complete: function () {
                                                i()
                                            }
                                        }) : e.unlink({
                                            filePath: c,
                                            fail: function (e) {
                                                console.error(e)
                                            },
                                            complete: function () {
                                                i()
                                            }
                                        })
                                    }
                                },
                                fail: function (e) {
                                    console.error(e), t()
                                }
                            })
                        })
                    }, e.prototype.realtimeLogInfo = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        try {
                            if (!o) return;
                            o.info.apply(o, arguments), console.info(arguments)
                        } catch (e) {
                            console.error(e)
                        }
                    }, e
                }();
            t.default = new r
        },
        function (e, t, n) {
            "use strict";
            if (Object.defineProperty(t, "__esModule", {
                    value: !0
                }), "undefined" != typeof GameGlobal) var o = GameGlobal.Laya;
            var r = null,
                i = function () {
                    function e() {
                        if (null != r) return r;
                        console.error("constructor"), this.init(), o.stage.addChild(this.node), r = this
                    }
                    return e.prototype.popup = function (e) {
                        var t = this.createDialog(e);
                        t.pivotX = t.width >> 1, t.pivotY = t.height >> 1, t.x = this.mask.width >> 1, t.y = this.mask.height >> 1, 0 == this.dialogNode.numChildren && o.stage.addChild(this.node), this.dialogNode.addChild(t)
                    }, e.prototype.closeDialog = function (e) {
                        this.dialogNode.removeChild(e), 0 == this.dialogNode.numChildren && o.stage.removeChild(this.node)
                    }, e.prototype.createLine = function (e, t, n) {
                        void 0 === n && (n = "#000000");
                        var r = new o.Sprite;
                        return r.alpha = .1, r.width = e, r.height = t, r.graphics.drawLine(0, 0, e, 0, n, t), r
                    }, e.prototype.createDialog = function (e) {
                        var t = new o.Sprite;
                        t.width = .8 * o.stage.width, t.width >= 700 && (t.width = 700), t.height = 0;
                        var n = new o.Label;
                        n.y = 0, n.x = 0, n.width = t.width, n.text = e.title ? e.title : "", n.fontSize = 32, n.bold = !0, n.color = "rgba(0,0,0,0.9)", n.align = "center", n.valign = "middle", n.padding = "60,0,0,0", n.leading = 0, t.addChild(n);
                        var r = new o.Label;
                        r.y = n.y + n.height, r.x = .05 * t.width, r.width = .9 * t.width, r.text = e.content ? e.content : "", r.leading = 10, r.fontSize = 30, r.wordWrap = !0, r.overflow = "scroll", r.color = "rgba(0,0,0,0.5)", r.align = "center", r.valign = "middle", r.padding = "40,0,30,0", t.addChild(r);
                        var i = new o.Label;
                        i.y = r.y + r.height, i.x = 0, i.width = t.width, i.text = e.confirmText ? e.confirmText : "确定", i.fontSize = 32, i.color = e.confirmColor ? e.confirmColor : "#576b95", i.align = "center", i.valign = "middle", i.padding = "30,0,30,0", i.leading = 0, i.on("click", this, this.confirmClick.bind(this, t, e)), t.addChild(i);
                        var s = this.createLine(t.width, 1);
                        if (s.y = i.y, t.addChild(s), void 0 === e.showCancel && (e.showCancel = !0), e.showCancel) {
                            i.width = t.width / 2, i.x = t.width / 2;
                            var a = new o.Label;
                            a.y = i.y, a.x = 0, a.width = t.width / 2, a.text = e.cancelText ? e.cancelText : "取消", a.fontSize = 32, a.color = e.cancelColor ? e.cancelColor : "rgba(0,0,0,0.9)", a.align = "center", a.valign = "middle", a.padding = "30,0,30,0", a.leading = 0, a.on("click", this, this.cancelClick.bind(this, t, e)), t.addChild(a);
                            var u = this.createLine(2, a.height);
                            u.x = t.width / 2, u.y = a.y + a.height / 2, t.addChild(u)
                        }
                        t.height = n.height + r.height + i.height;
                        var c = 15,
                            p = [
                                ["moveTo", c, 0],
                                ["lineTo", t.width - c, 0],
                                ["arcTo", t.width, 0, t.width, c, c],
                                ["lineTo", t.width, t.height - 30],
                                ["arcTo", t.width, t.height, t.width - c, t.height, c],
                                ["lineTo", c, t.height],
                                ["arcTo", 0, t.height, 0, t.height - c, c],
                                ["lineTo", 0, c],
                                ["arcTo", 0, 0, c, 0, c]
                            ];
                        return t.graphics.drawPath(0, 0, p, {
                            fillStyle: "#ffffff"
                        }), t.on("click", this, function (e) {
                            e.stopPropagation()
                        }), t
                    }, e.prototype.confirmClick = function (e, t, n) {
                        t.success && t.success({
                            confirm: !0,
                            cancel: !1
                        }), t.complete && t.complete({}), this.closeDialog(e), n.stopPropagation()
                    }, e.prototype.cancelClick = function (e, t, n) {
                        t.success && t.success({
                            confirm: !1,
                            cancel: !0
                        }), t.complete && t.complete({}), this.closeDialog(e), n.stopPropagation()
                    }, e.prototype.init = function () {
                        this.node = new o.Sprite, this.dialogNode = new o.Sprite;
                        var e = new o.Sprite;
                        this.mask = e, e.width = o.stage.width, e.height = o.stage.height, e.graphics.drawRect(0, 0, e.width, e.height, "#rgba(0,0,0,0.6)"), e.on("click", this, function (e) {
                            e.stopPropagation()
                        }), this.node.addChild(e), this.node.addChild(this.dialogNode)
                    }, e
                }();
            t.default = i
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CXChannelAppSetter = t.SDKWrapper = t.sdk = t.decryptFunction = t.encryptFunction = void 0;
            var o = n(14),
                r = n(15),
                i = r.cxGetRequestData,
                s = r.cxGetResponseData,
                a = n(16),
                u = n(33),
                c = n(34),
                p = n(35),
                f = n(36);
            try {
                console.log("qingjs build time: Mon May 27 2024 10:12:01 GMT+0800 (中国标准时间)")
            } catch (e) {}
            t.encryptFunction = i, t.decryptFunction = function (e) {
                return (e = s(e)).substring(0, e.lastIndexOf("}") + 1)
            }, t.sdk = new a.CXSDK(o, t.encryptFunction, t.decryptFunction);
            var l = function () {
                    function e() {}
                    return e.prototype.isVideoAdValid = function () {
                        return t.sdk.wechatADApp && t.sdk.wechatADApp.isVideoAdValid()
                    }, e.prototype.showVideoAd = function (e) {
                        t.sdk.wechatADApp && t.sdk.wechatADApp.showVideoAd(e)
                    }, e
                }(),
                h = t.sdk.pushApp(new u.RecommendApp),
                d = function () {
                    function e() {}
                    return e.prototype.available = function () {
                        return h.available()
                    }, e.prototype.list = function () {
                        return h.list()
                    }, e.prototype.reportClickItem = function (e) {
                        return h.reportClickItem(e)
                    }, e.prototype.reportShowPanel = function () {
                        return h.reportShowPanel()
                    }, e
                }(),
                g = t.sdk.pushApp(new c.VIPApp),
                y = function () {
                    function e() {}
                    return e.prototype.isVIP = function () {
                        return g.isVIP()
                    }, e.prototype.openVIPGuide = function () {
                        return g.openVIPGuide()
                    }, e.prototype.visible = function () {
                        return g.visible()
                    }, e.prototype.visibleAsync = function () {
                        return g.visibleAsync()
                    }, e
                }(),
                _ = t.sdk.pushApp(new f.EventReporterApp),
                m = function () {
                    function e() {}
                    return e.prototype.clickAd = function (e) {
                        return _.clickAd(e)
                    }, e.prototype.completeAd = function (e) {
                        return _.completeAd(e)
                    }, e.prototype.enterStage = function (e) {
                        return _.enterStage(e)
                    }, e.prototype.exitStage = function (e) {
                        return _.exitStage(e)
                    }, e.prototype.showAd = function (e) {
                        return _.showAd(e)
                    }, e.prototype.showAdButton = function (e) {
                        return _.showAdButton(e)
                    }, e
                }(),
                I = t.sdk.pushApp(new p.ConfigApp),
                A = function () {
                    function e() {}
                    return e.prototype.switchGameConfig = function () {
                        return I.switchGameConfig()
                    }, e
                }(),
                v = function () {
                    function e() {}
                    return Object.defineProperty(e.prototype, "app", {
                        get: function () {
                            return t.sdk.findSubAppByName("SubscribeMessageApp")
                        },
                        enumerable: !1,
                        configurable: !0
                    }), e.prototype.checkAllAccept = function (e) {
                        return this.app.checkAllAccept(e)
                    }, e.prototype.subscribeAll = function (e) {
                        return this.app.subscribeAll(e)
                    }, e
                }(),
                b = function () {
                    function e() {
                        this.channelName = "", this.channelApi = t.sdk.cxChannelApp.channelApi, this.recommendManager = new d, this.vip = new y, this.config = new A, this.subscribeMsg = new v, this.eventReporter = new m, this.WechatAD = new l
                    }
                    return e.prototype.init = function () {
                        throw Error("init 方法已经过时，请使用qingjs.instance.onInit(callback)代替")
                    }, e.prototype.onInit = function (e) {
                        t.sdk.onInit(e)
                    }, e.prototype.login = function (e, n) {
                        t.sdk.onLogin(n)
                    }, e.prototype.canPay = function () {
                        return t.sdk.inListApp.canPay()
                    }, e.prototype.can_pay = function () {
                        return console.warn("can_pay 方法已过时，请使用canPay"), this.canPay()
                    }, e.prototype.purchase = function (e, n) {
                        e.productName = null != e.product_name ? e.product_name : e.productName, e.productId = null != e.product_id ? e.product_id : e.productId, e.productPrice = null != e.product_price ? e.product_price : e.productPrice, e.cpOrderId = null != e.cp_order_id ? e.cp_order_id : e.cpOrderId, e.extendsParam1 = null != e.extends_param1 ? e.extends_param1 : e.extendsParam1, e.extendsParam2 = null != e.extends_param2 ? e.extends_param2 : e.extendsParam2, e.roleId = null != e.role_id ? e.role_id : e.roleId, e.roleName = null != e.role_name ? e.role_name : e.roleName, e.roleLevel = null != e.role_level ? e.role_level : e.roleLevel, e.serverId = null != e.server_id ? e.server_id : e.serverId, e.serverName = null != e.server_name ? e.server_name : e.serverName, e.roleVip = null != e.role_vip ? e.role_vip : e.roleVip, t.sdk.purchase(e).then(function (e) {
                            var t = e;
                            t.is_success = e.isSuccess, t.cp_order_id = e.cpOrderId, t.cx_order_id = e.cxOrderId, n && n(t)
                        }).catch(function (e) {
                            console.error(e)
                        })
                    }, e.prototype.onPayResult = function (e) {
                        var n;
                        null === (n = t.sdk.payApp) || void 0 === n || n.addOnPayResultCallback(function (t) {
                            var n = t;
                            n.is_success = t.isSuccess, n.cp_order_id = t.cpOrderId, n.cx_order_id = t.cxOrderId, e && e(n)
                        })
                    }, e.prototype.on_pay_result = function (e) {
                        console.warn("on_pay_result 方法已过时，请使用onPayResult"), this.onPayResult(e)
                    }, e.prototype.inList = function () {
                        return t.sdk.inListApp.inList
                    }, e.prototype.in_list = function () {
                        return console.warn("in_list 方法已过时，请使用inList"), this.inList()
                    }, e.prototype.reportRoleInfo = function (e, n) {
                        e.roleId = null != e.roleId ? e.roleId : e.role_id, e.roleLevel = null != e.roleLevel ? e.roleLevel : e.role_level, e.roleName = null != e.roleName ? e.roleName : e.role_name, e.rolePower = parseInt(String(null != e.rolePower ? e.rolePower : e.role_power)), e.serverId = null != e.serverId ? e.serverId : e.server_id, e.serverName = null != e.serverName ? e.serverName : e.server_name, e.roleVip = parseInt(String(null != e.roleVip ? e.roleVip : e.role_vip)), e.reportType = null != e.reportType ? e.reportType : e.report_type, t.sdk.reportRoleInfo(e).then(function (e) {
                            var t = Object.assign({}, e);
                            t.can_pay = e.canPay, n && n(t)
                        })
                    }, e.prototype.report_role_info = function (e, t) {
                        console.warn("report_role_info 方法已过时，请使用reportRoleInfo"), this.reportRoleInfo(e, t)
                    }, e.prototype.reportEvent = function (e) {
                        t.sdk.reportEvent(e)
                    }, e.prototype.report_event = function (e) {
                        console.warn("report_event 方法已过时，请使用reportEvent"), this.reportEvent(e)
                    }, e.prototype.getShareToken = function () {
                        return t.sdk.getShareToken()
                    }, e.prototype.get_share_token = function () {
                        return console.warn("get_share_token 方法已过时，请使用getShareToken"), this.getShareToken()
                    }, e.prototype.getOS = function () {
                        return t.sdk.deviceInfo.os
                    }, e.prototype.openCustomerService = function () {
                        t.sdk.openCustomerService()
                    }, e.prototype.showMenu = function (e) {
                        t.sdk.showMenu(e)
                    }, e.prototype.onUserInfoBtnTap = function (e) {
                        t.sdk.onUserInfoBtnTap(e)
                    }, e.prototype.goCustomerService = function () {
                        t.sdk.openCustomerService()
                    }, e.prototype.queryOrderResult = function (e, n) {
                        var o;
                        null === (o = t.sdk.payApp) || void 0 === o || o.queryOrderResult(e).then(function (e) {
                            var o = e;
                            o.is_success = e.isSuccess, o.cp_order_id = e.cpOrderId, o.cx_order_id = e.cxOrderId, t.sdk.log(o), n && n(o)
                        })
                    }, e.prototype.query_order_result = function (e, t) {
                        console.warn("query_order_result 方法已过时，请使用queryOrderResult"), this.queryOrderResult(e, t)
                    }, e.prototype.bindPhone = function (e, n, o) {
                        t.sdk.requestBindPhone(e, n).then(function (e) {
                            o && o({
                                code: 200,
                                message: "绑定成功"
                            })
                        }).catch(function (e) {
                            o && o({
                                code: e.code,
                                message: e.errMsg
                            })
                        })
                    }, e.prototype.sendPhoneVCode = function (e, n) {
                        t.sdk.sendPhoneVCode(e).then(function (e) {
                            n && n({
                                code: 200,
                                message: "发送成功"
                            })
                        }).catch(function (e) {
                            n && n({
                                code: -1,
                                message: e
                            })
                        })
                    }, e.prototype.onGetUserInfo = function (e) {
                        return t.sdk.requestUserInfoApp.getUserInfoSuccess(e)
                    }, e.prototype.getParameter = function (e) {
                        return t.sdk.otherParameterApp.getParameter(e)
                    }, e.prototype.request = function (e, n, o) {
                        return void 0 === o && (o = !0), t.sdk.request(e, n, o)
                    }, e.prototype.getCommonData = function () {
                        return t.sdk.copyCommonData()
                    }, e.prototype.getOpenID = function (e) {
                        return void 0 === e && (e = !1), t.sdk.getOpenID(e)
                    }, e
                }();
            t.SDKWrapper = b;
            var O = function () {
                function e() {}
                return e.prototype.setChannelApp = function (e) {
                    t.sdk.cxChannelApp = e, t.sdk.initSubApp()
                }, e
            }();
            t.CXChannelAppSetter = O
        },
        function (e, t) {
            e.exports = window["qingjs-conf"]
        },
        function (e, t) {
            var n = "bqt34u8K",
                o = "0002030205060607",
                r = "zxc8923n",
                i = "0102010204060607",
                s = "134zadsa",
                a = "0002030203060608",
                u = "OnT8f4MNHXw10Dg9SIKFPKnOzWP2lMQSzhpkmCZnFi1XaLUcijWOH8ak+3Y/kGba",
                c = "Ztm3tRDSDg7/rj5o5yx+Y3p7X749beZYcxCdGlOki9tKL3DvoC8J0S9fqiJ4Qe/v5VrPgjKSAsglhSZNLeqCiQ==";

            function p(e, t, n, o, r, i) {
                var s, a, u, c, p, f, l, h, d, g, y, _, m, I, A = new Array(16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756),
                    v = new Array(-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344),
                    b = new Array(520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 512, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 512, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 512, 131080, 134349320, 134218240, 134217736, 512, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584),
                    O = new Array(8396801, 8321, 8321, 128, 8396928, 8388737, 8388609, 8193, 0, 8396800, 8396800, 8396929, 129, 0, 8388736, 8388609, 1, 8192, 8388608, 8396801, 128, 8388608, 8193, 8320, 8388737, 1, 8320, 8388736, 8192, 8396928, 8396929, 129, 8388736, 8388609, 8396800, 8396929, 129, 0, 0, 8396800, 8320, 8388736, 8388737, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 8192, 8388609, 8193, 8396928, 8388737, 8193, 8320, 8388608, 8396801, 128, 8388608, 8192, 8396928),
                    C = new Array(256, 34078976, 34078720, 1107296512, 524288, 256, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 256, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 256, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080),
                    S = new Array(536870928, 541065216, 16384, 541081616, 541065216, 16, 541081616, 4194304, 536887296, 4210704, 4194304, 536870928, 4194320, 536887296, 536870912, 16400, 0, 4194320, 536887312, 16384, 4210688, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 4210688, 541081600, 536870912, 536887296, 16, 541065232, 4210688, 541081616, 4194304, 16400, 536870928, 4194304, 536887296, 536870912, 16400, 536870928, 541081616, 4210688, 541065216, 4210704, 541081600, 0, 541065232, 16, 16384, 541065216, 4210704, 16384, 4194320, 536887312, 0, 541081600, 536870912, 4194320, 536887312),
                    P = new Array(2097152, 69206018, 67110914, 0, 2048, 67110914, 2099202, 69208064, 69208066, 2097152, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 2097154, 67110912, 67108866, 69206016, 69208064, 2097154, 69206016, 2048, 2050, 69208066, 2099200, 2, 67108864, 2099200, 67108864, 2099200, 2097152, 67110914, 67110914, 69206018, 69206018, 2, 2097154, 67108864, 67110912, 2097152, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 2099200, 0, 2, 69208066, 0, 2099202, 69206016, 2048, 67108866, 67110912, 2048, 2097154),
                    D = new Array(268439616, 4096, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 4096, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 4096, 64, 268697664, 4096, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696),
                    w = function (e) {
                        for (var t, n, o = new Array(0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964), r = new Array(0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697), i = new Array(0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272), s = new Array(0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144), a = new Array(0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256), u = new Array(0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488), c = new Array(0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746), p = new Array(0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568), f = new Array(0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578), l = new Array(0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488), h = new Array(0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800), d = new Array(0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744), g = new Array(0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128), y = new Array(0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261), _ = e.length > 8 ? 3 : 1, m = new Array(32 * _), I = new Array(0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0), A = 0, v = 0, b = 0; b < _; b++) {
                            let _ = e.charCodeAt(A++) << 24 | e.charCodeAt(A++) << 16 | e.charCodeAt(A++) << 8 | e.charCodeAt(A++),
                                b = e.charCodeAt(A++) << 24 | e.charCodeAt(A++) << 16 | e.charCodeAt(A++) << 8 | e.charCodeAt(A++),
                                C = 252645135 & (_ >>> 4 ^ b);
                            _ ^= C << 4, _ ^= C = 65535 & ((b ^= C) >>> -16 ^ _), _ ^= (C = 858993459 & (_ >>> 2 ^ (b ^= C << -16))) << 2, _ ^= C = 65535 & ((b ^= C) >>> -16 ^ _), _ ^= (C = 1431655765 & (_ >>> 1 ^ (b ^= C << -16))) << 1, _ ^= C = 16711935 & ((b ^= C) >>> 8 ^ _), C = (_ ^= (C = 1431655765 & (_ >>> 1 ^ (b ^= C << 8))) << 1) << 8 | (b ^= C) >>> 20 & 240, _ = b << 24 | b << 8 & 16711680 | b >>> 8 & 65280 | b >>> 24 & 240, b = C;
                            for (var O = 0; O < I.length; O++) I[O] ? (_ = _ << 2 | _ >>> 26, b = b << 2 | b >>> 26) : (_ = _ << 1 | _ >>> 27, b = b << 1 | b >>> 27), b &= -15, t = o[(_ &= -15) >>> 28] | r[_ >>> 24 & 15] | i[_ >>> 20 & 15] | s[_ >>> 16 & 15] | a[_ >>> 12 & 15] | u[_ >>> 8 & 15] | c[_ >>> 4 & 15], n = p[b >>> 28] | f[b >>> 24 & 15] | l[b >>> 20 & 15] | h[b >>> 16 & 15] | d[b >>> 12 & 15] | g[b >>> 8 & 15] | y[b >>> 4 & 15], C = 65535 & (n >>> 16 ^ t), m[v++] = t ^ C, m[v++] = n ^ C << 16
                        }
                        return m
                    }(e),
                    E = 0,
                    k = t.length,
                    N = 0,
                    R = 32 == w.length ? 3 : 9;
                h = 3 == R ? n ? new Array(0, 32, 2) : new Array(30, -2, -2) : n ? new Array(0, 32, 2, 62, 30, -2, 64, 96, 2) : new Array(94, 62, -2, 32, 64, 2, 30, -2, -2), 2 == i ? t += "        " : 1 == i ? (u = 8 - k % 8, t += String.fromCharCode(u, u, u, u, u, u, u, u), 8 == u && (k += 8)) : i || (t += "\0\0\0\0\0\0\0\0");
                let x = "",
                    M = "";
                for (1 == o && (d = r.charCodeAt(E++) << 24 | r.charCodeAt(E++) << 16 | r.charCodeAt(E++) << 8 | r.charCodeAt(E++), y = r.charCodeAt(E++) << 24 | r.charCodeAt(E++) << 16 | r.charCodeAt(E++) << 8 | r.charCodeAt(E++), E = 0); E < k;) {
                    for (f = t.charCodeAt(E++) << 24 | t.charCodeAt(E++) << 16 | t.charCodeAt(E++) << 8 | t.charCodeAt(E++), l = t.charCodeAt(E++) << 24 | t.charCodeAt(E++) << 16 | t.charCodeAt(E++) << 8 | t.charCodeAt(E++), 1 == o && (n ? (f ^= d, l ^= y) : (g = d, _ = y, d = f, y = l)), f ^= (u = 252645135 & (f >>> 4 ^ l)) << 4, f ^= (u = 65535 & (f >>> 16 ^ (l ^= u))) << 16, f ^= u = 858993459 & ((l ^= u) >>> 2 ^ f), f ^= u = 16711935 & ((l ^= u << 2) >>> 8 ^ f), f = (f ^= (u = 1431655765 & (f >>> 1 ^ (l ^= u << 8))) << 1) << 1 | f >>> 31, l = (l ^= u) << 1 | l >>> 31, a = 0; a < R; a += 3) {
                        for (m = h[a + 1], I = h[a + 2], s = h[a]; s != m; s += I) c = l ^ w[s], p = (l >>> 4 | l << 28) ^ w[s + 1], u = f, f = l, l = u ^ (v[c >>> 24 & 63] | O[c >>> 16 & 63] | S[c >>> 8 & 63] | D[63 & c] | A[p >>> 24 & 63] | b[p >>> 16 & 63] | C[p >>> 8 & 63] | P[63 & p]);
                        u = f, f = l, l = u
                    }
                    l = l >>> 1 | l << 31, l ^= u = 1431655765 & ((f = f >>> 1 | f << 31) >>> 1 ^ l), l ^= (u = 16711935 & (l >>> 8 ^ (f ^= u << 1))) << 8, l ^= (u = 858993459 & (l >>> 2 ^ (f ^= u))) << 2, l ^= u = 65535 & ((f ^= u) >>> 16 ^ l), l ^= u = 252645135 & ((f ^= u << 16) >>> 4 ^ l), f ^= u << 4, 1 == o && (n ? (d = f, y = l) : (f ^= g, l ^= _)), M += String.fromCharCode(f >>> 24, f >>> 16 & 255, f >>> 8 & 255, 255 & f, l >>> 24, l >>> 16 & 255, l >>> 8 & 255, 255 & l), 512 == (N += 8) && (x += M, M = "", N = 0)
                }
                return x + M
            }

            function f(e) {
                for (var t = "", n = "0x" == e.substr(0, 2) ? 2 : 0; n < e.length; n += 2) t += String.fromCharCode(parseInt(e.substr(n, 2), 16));
                return t
            }
            var l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
                h = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);

            function d(e) {
                var t, n, o, r, i, s, a;
                for (s = e.length, i = 0, a = ""; i < s;) {
                    do {
                        t = h[255 & e.charCodeAt(i++)]
                    } while (i < s && -1 == t);
                    if (-1 == t) break;
                    do {
                        n = h[255 & e.charCodeAt(i++)]
                    } while (i < s && -1 == n);
                    if (-1 == n) break;
                    a += String.fromCharCode(t << 2 | (48 & n) >> 4);
                    do {
                        if (61 == (o = 255 & e.charCodeAt(i++))) return a;
                        o = h[o]
                    } while (i < s && -1 == o);
                    if (-1 == o) break;
                    a += String.fromCharCode((15 & n) << 4 | (60 & o) >> 2);
                    do {
                        if (61 == (r = 255 & e.charCodeAt(i++))) return a;
                        r = h[r]
                    } while (i < s && -1 == r);
                    if (-1 == r) break;
                    a += String.fromCharCode((3 & o) << 6 | r)
                }
                return a
            }
            var g = {
                encode: function (e) {
                    var t = e.replace(/[\u0080-\u07ff]/g, function (e) {
                        var t = e.charCodeAt(0);
                        return String.fromCharCode(192 | t >> 6, 128 | 63 & t)
                    });
                    return t = t.replace(/[\u0800-\uffff]/g, function (e) {
                        var t = e.charCodeAt(0);
                        return String.fromCharCode(224 | t >> 12, 128 | t >> 6 & 63, 128 | 63 & t)
                    })
                },
                decode: function (e) {
                    var t = e.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, function (e) {
                        var t = (15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2);
                        return String.fromCharCode(t)
                    });
                    return t = t.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function (e) {
                        var t = (31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1);
                        return String.fromCharCode(t)
                    })
                }
            };
            e.exports = {
                cxGetRequestData: function (e) {
                    var t = p(s, d(u), 0, 1, f(a), 0),
                        h = p(r, d(t), 0, 1, f(i), 0),
                        y = p(n, d(h), 0, 1, f(o), 0),
                        _ = p(s, d(c), 0, 1, f(a), 0),
                        m = p(r, d(_), 0, 1, f(i), 0),
                        I = p(n, d(m), 0, 1, f(o), 0);
                    return function (e) {
                        var t, n, o, r, i, s;
                        for (o = e.length, n = 0, t = ""; n < o;) {
                            if (r = 255 & e.charCodeAt(n++), n == o) {
                                t += l.charAt(r >> 2), t += l.charAt((3 & r) << 4), t += "==";
                                break
                            }
                            if (i = e.charCodeAt(n++), n == o) {
                                t += l.charAt(r >> 2), t += l.charAt((3 & r) << 4 | (240 & i) >> 4), t += l.charAt((15 & i) << 2), t += "=";
                                break
                            }
                            s = e.charCodeAt(n++), t += l.charAt(r >> 2), t += l.charAt((3 & r) << 4 | (240 & i) >> 4), t += l.charAt((15 & i) << 2 | (192 & s) >> 6), t += l.charAt(63 & s)
                        }
                        return t
                    }(p(y.substring(0, 8), g.encode(JSON.stringify(e)), 1, 1, f(I.substring(0, 16)), 1))
                },
                cxGetResponseData: function (e) {
                    var t = p(s, d(u), 0, 1, f(a), 0),
                        l = p(r, d(t), 0, 1, f(i), 0),
                        h = p(n, d(l), 0, 1, f(o), 0),
                        y = p(s, d(c), 0, 1, f(a), 0),
                        _ = p(r, d(y), 0, 1, f(i), 0),
                        m = p(n, d(_), 0, 1, f(o), 0);
                    return g.decode(p(h.substring(0, 8), d(e), 0, 1, f(m.substring(0, 16)), 0))
                }
            }
        },
        function (e, t, n) {
            "use strict";
            var o = this && this.__assign || function () {
                return (o = Object.assign || function (e) {
                    for (var t, n = 1, o = arguments.length; n < o; n++)
                        for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
                    return e
                }).apply(this, arguments)
            };
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CXSDK = t.CXRequestError = void 0;
            var r = n(2),
                i = n(1),
                s = n(17),
                a = n(18),
                u = n(19),
                c = n(20),
                p = n(3),
                f = n(21),
                l = n(22),
                h = n(23),
                d = n(24),
                g = n(25),
                y = n(26),
                _ = n(27),
                m = n(28),
                I = n(0),
                A = n(29),
                v = (n(30), n(31)),
                b = (n(32), function () {
                    return function () {}
                }());
            t.CXRequestError = b;
            var O = function () {
                function e(e, t, n) {
                    this.getOpenIDChannelCode = 44, this.loginChannel = -1, this.loginChannelUID = "", this.loginChannelToken = "", this._console = new m.CXConsole, this._subApps = [], this._channelApp = null, this._hasCallInit = !1, this._callbackCP = !0,

                        this._conf = e,
                        this.encryptFunction = t, this.decryptFunction = n, this._console.logLog = this.conf.DEBUG,
                        this.log("QING_CONF.APP_VERSION:" + this._conf.APP_VERSION),

                        this.log("QING_CONF.GAMEKEY:" + this._conf.GAMEKEY), this._commonData = new p.CommonData, this._db = new c.DB, this._userInfo = new d.UserInfo(this._db), this._urlManager = new a.UrlManager(this._conf), this._urlManager.setSDK(this), this._deviceInfo = new u.DeviceInfo, this._appRunner = new y.AppRunner, this._appRunner.setSDK(this)
                }
                return e.prototype.pushApp = function (e) {
                    return this._subApps.push(e), e.setSDK(this), e
                }, e.prototype.initSubApp = function () {
                    for (var e in this._subApps.push(this._urlManager), this._subApps.push(new s.WXInit), this._subApps.push(new f.ConfCommonDataApp), this._subApps.push(new l.AutoInitLoginApp), this._inListApp = new v.InListApp, this._subApps.push(this._inListApp), this._fenbaoIDApp = new g.FenbaoIDApp, this._subApps.push(this._fenbaoIDApp), this._subApps.push(new _.OnlineTimeApp), this._subApps.push(new A.CXLaunchActionApp), this.cxChannelApp && this._subApps.push(this.cxChannelApp), this._subApps) {
                        this._subApps[e].setSDK(this)
                    }
                    this._callbackApp = new h.CallbackApp, this._subApps.push(this._callbackApp), this._callbackApp.setSDK(this), this._appRunner.onSDKCreate()
                }, e.prototype.findSubAppByName = function (e) {
                    for (var t = 0, n = this.subApps; t < n.length; t++) {
                        var o = n[t];
                        if (o.name() === e) return o
                    }
                }, e.prototype.removeSubAppByName = function (e) {
                    var t = this.findSubAppByName(e),
                        n = this.subApps.indexOf(t, 0);
                    return n > -1 && this.subApps.splice(n, 1), t
                }, e.prototype.log = function (e) {
                    this._console.log(e)
                }, e.prototype.warn = function () {
                    for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                    this._console.warn.apply(this._console, arguments)
                }, e.prototype.onInit = function (e) {
                    this._callbackApp.addOnInitCallback(e)
                }, e.prototype.onLogin = function (e) {
                    this._callbackApp.addOnLoginCallback(e)
                }, e.prototype.onUserInfoBtnTap = function (e) {
                    this._requestUserInfoApp && this._requestUserInfoApp.addOnUserInfoBtnTapCallback(e)
                }, e.prototype.isInit = function () {
                    return !!this._initResponse
                }, e.prototype.init = function () {
                    var e = this;
                    this._hasCallInit = !0, this._appRunner.beforeInit().then(function (t) {
                        e.requestInit().then(function (t) {
                            e._initResponse = t, e._appRunner.onInit(t).then(function () {
                                e._appRunner.afterInit().then()
                            })
                        })
                    })
                }, e.prototype.request = function (e, t, n) {
                    void 0 === n && (n = !0);
                    var o = this;
                    n && (t = Object.assign(this.copyCommonData(), t));
                    var i = JSON.stringify(t);
                    return this.encryptFunction && (i = this.encryptFunction(t)), new Promise(function (t, n) {
                        r.default.requestCXServer(e, i).then(function (r) {
                            if (200 == r.statusCode) {
                                var s = r.data,
                                    a = s.message;
                                if (200 != s.code) console.log("request eeee", e, r.data), console.log("request data", i), n({
                                    statusCode: r.statusCode,
                                    code: s.code,
                                    errMsg: a
                                });
                                else if ("string" == typeof s.data) {
                                    var u = o.decryptFunction(s.data);
                                    console.log("request", e, u), t(JSON.parse(u))
                                } else t(s.data)
                            } else n({
                                statusCode: r.statusCode,
                                code: -1,
                                errMsg: "server error"
                            })
                        })
                    })
                }, e.prototype.getRequest = function (e, t) {
                    var n = this;
                    return new Promise(function (o, i) {
                        r.default.getRequest(e, t).then(function (e) {
                            if (200 == e.statusCode) {
                                var t = e.data,
                                    r = t.message;
                                if (200 != t.code) i({
                                    statusCode: e.statusCode,
                                    code: t.code,
                                    errMsg: r
                                });
                                else if ("string" == typeof t.data) {
                                    var s = n.decryptFunction(t.data);
                                    o(JSON.parse(s))
                                } else o(t.data)
                            } else i({
                                statusCode: e.statusCode,
                                code: -1,
                                errMsg: "server error"
                            })
                        })
                    })
                }, e.prototype.requestInit = function () {
                    var e = this,
                        t = {
                            wxLaunchOptions: window['wx'] ?.getLaunchOptionsSync()
                        },
                        n = {
                            content: JSON.stringify(t)
                        },
                        o = this.urlManager.initUrl;
                    return new Promise(function (t, r) {
                        e.request(o, n).then(function (n) {
                            e.log("初始化成功"), t(n)
                        }).catch(function (t) {
                            e.log("初始化失败:" + t.errMsg), r(t.errMsg)
                        })
                    })
                }, e.prototype.getOpenID = function (e) {
                    var t = this;
                    void 0 === e && (e = !1);
                    var n = this;

                    function o(e, t) {
                        window['wx'] ?.login({
                            success: function (o) {
                                if (o.code) {
                                    n.log("微信登录成功");
                                    var r = o.code,
                                        i = n.commonData.game_key,
                                        s = {
                                            channel: n.getOpenIDChannelCode,
                                            oauth_code: r,
                                            game_key: i
                                        },
                                        a = n.urlManager.oauthUrl;
                                    n.request(a, s, !1).then(function (t) {
                                        n._openID = t.uid, n.db.setID(I.StoreKey.OPENID, n._openID), e(n._openID)
                                    }).catch(t)
                                }
                            },
                            fail: function (e) {
                                n.log("window['wx']?.login fail"), n.log(e)
                            }
                        })
                    }
                    return new Promise(function (r, i) {
                        t._openID || (t._openID = t.db.getID(I.StoreKey.OPENID)), e && o(r, i), t._openID ? (n.log("checkSession"), window['wx'] ?.checkSession({
                            success: function () {
                                r(n._openID)
                            },
                            fail: function () {
                                o(r, i)
                            }
                        })) : o(r, i)
                    })
                }, e.prototype.forceGetOpenID = function () {
                    return this.getOpenID(!0)
                }, e.prototype.isLogin = function () {
                    return !!this._loginResponse
                }, e.prototype.login = function () {
                    var e = this;
                    if (!this._hasCallInit) throw new Error("CX登录失败，尚未调用初始化");
                    this._callbackApp.addOnInitCallback(function () {
                        var t = {};
                        e._appRunner.beforeLogin(t).then(function (n) {
                            e.requestLogin(t).then(function (t) {
                                e._loginResponse = t, e._userInfo.gameAccount = t.game_account, e._userInfo.token = t.token, e._userInfo.uid = t.uid, e._userInfo.phone = t.bind_phone, e._userInfo.realNameInfo = t.real_name_info, e._appRunner.onLogin(t).then()
                            })
                        })
                    })
                }, e.prototype.requestLogin = function (e) {
                    var t = this,
                        n = o({}, e);
                    n.channel_uid = this.loginChannelUID, n.channel_token = this.loginChannelToken, n.channel = this.loginChannel;
                    var r = this.urlManager.loginUrl;
                    return new Promise(function (e, o) {
                        t.request(r, n).then(function (n) {
                            t.log("CX登录成功,绑定账号为:" + n.game_account), e(n)
                        }).catch(function (e) {
                            t.log("CX登录失败:" + e.errMsg), window['wx'] ?.showToast({
                                title: e.errMsg,
                                icon: "none"
                            }), o(e.errMsg)
                        })
                    })
                }, e.prototype.purchase = function (e) {
                    return console.warn("本sdk不支持支付接口"), Promise.resolve({
                        code: -1,
                        message: "本sdk不支持支付接口",
                        isSuccess: !1,
                        cpOrderId: e.cpOrderId,
                        cxOrderId: ""
                    })
                }, e.prototype.requestPurchase = function (e) {
                    var t = this,
                        n = {};
                    return n.game_account = this._userInfo.gameAccount, n.product_name = e.productName, n.product_id = e.productId, n.product_price = e.productPrice, n.cp_order_id = e.cpOrderId, n.is_sandbox = !1, n.extends_param1 = e.extendsParam1, n.extends_param2 = e.extendsParam2, n.role_id = e.roleId, n.role_name = e.roleName, n.role_level = e.roleLevel, n.server_id = e.serverId, n.server_name = e.serverName, n.role_vip = e.roleVip, new Promise(function (o, r) {
                        var i = t.urlManager.purchaseUrl;
                        t.payApp.getPurchaseUrlParameter(e).then(function (e) {
                            i += "?" + e, t.request(i, n).then(function (e) {
                                t.log("CX下单成功:" + e.order_id), o(e)
                            }).catch(function (e) {
                                t.log("CX下单失败:" + e.errMsg), r(e)
                            })
                        })
                    })
                }, e.prototype.onPaySuccess = function (e) {
                    this._appRunner.onPaySuccess(e)
                }, e.prototype.afterPay = function (e) {}, e.prototype.reportRoleInfo = function (e) {
                    var t = this;
                    if (e = Object.assign({}, e), !this.isLogin()) throw new Error("请先登录");
                    var n = this;
                    return this._userInfo.setRoleInfo(e), new Promise(function (o, r) {
                        n._appRunner.beforeReportRoleInfo(e).then(function (r) {
                            t.requestReportRoleInfo(e).then(function (e) {
                                n._appRunner.onReportRoleInfo(e).then(function () {
                                    o({
                                        code: 200,
                                        message: "上报角色数据成功",
                                        canPay: n.inListApp.canPay()
                                    })
                                })
                            }).catch(function (e) {
                                o({
                                    code: e.code,
                                    message: e.errMsg,
                                    canPay: n.inListApp.canPay()
                                })
                            })
                        })
                    })
                }, e.prototype.requestReportRoleInfo = function (e) {
                    var t = this,
                        n = this.urlManager.reportRoleInfoUrl,
                        o = {};
                    return o.game_account = this._userInfo.gameAccount, o.role_id = e.roleId, o.role_level = e.roleLevel, o.role_name = e.roleName, o.role_power = e.rolePower, o.server_id = e.serverId, o.server_name = e.serverName, o.role_vip = e.roleVip, o.report_type = e.reportType, o.role_gold = e.roleGold, o.role_diamond = e.roleDiamond, new Promise(function (e, r) {
                        t.request(n, o).then(function (t) {
                            e(t)
                        }).catch(function (e) {
                            t.log("CX上报角色数据失败:" + e.errMsg), r(e)
                        })
                    })
                }, e.prototype.reportEvent = function (e) {
                    this.requestReportEvent(e).then()
                }, e.prototype.reportADEvent = function (e) {
                    this.requestReportEvent(e).then()
                }, e.prototype.requestReportEvent = function (e) {
                    var t = this,
                        n = this.urlManager.reportEventUrl,
                        o = {};
                    return o.game_account = this._userInfo.gameAccount, o.account = this._userInfo.gameAccount, o.event_type = e.eventType, o.event_source = e.eventSource, o.event_ext = e.eventExt, new Promise(function (e, r) {
                        t.request(n, o).then(function (t) {
                            e(t)
                        }).catch(function (e) {
                            t.log("CX上报日志失败:" + e.errMsg), r(e)
                        })
                    })
                }, e.prototype.reportCommonEvent = function (e, t) {
                    void 0 === t && (t = null), this.requestReportCommonEvent2V1(e, t).then()
                }, e.prototype.requestReportCommonEvent2V1 = function (e, t) {
                    var n = this;
                    void 0 === t && (t = null);
                    var o = this.urlManager.reportCommonEvent2V1Url,
                        r = {};
                    return r.event = e, r.content = t, new Promise(function (e, t) {
                        n.request(o, r).then(function (t) {
                            e(t)
                        }).catch(function (e) {
                            n.log("CX上报COMMON日志失败:" + e.errMsg), t(e)
                        })
                    })
                }, e.prototype.sendPhoneVCode = function (e) {
                    var t = this,
                        n = i.default.isValidPhoneNum(e);
                    if (!n.valid) return window['wx'] ?.showToast({
                        title: n.msg,
                        icon: "none"
                    }), Promise.reject(n.msg);
                    var o = {
                            phone: e
                        },
                        r = this.urlManager.sendPhoneVerifyCodeUrl;
                    return new Promise(function (e, n) {
                        t.request(r, o, !1).then(function () {
                            t.log("发送手机验证码成功"), e(!0)
                        }).catch(function (e) {
                            t.log("发送手机验证码失败:" + e.errMsg), n(e.errMsg)
                        })
                    })
                }, e.prototype.verifyPhoneVCode = function (e, t) {
                    var n = this,
                        o = i.default.isValidPhoneNum(e);
                    if (!o.valid) return window['wx'] ?.showToast({
                        title: o.msg,
                        icon: "none"
                    }), Promise.reject(o.msg);
                    var r = {
                            phone: e,
                            vcode: t
                        },
                        s = this.urlManager.verifyPhoneVCodeUrl;
                    return new Promise(function (e, t) {
                        n.request(s, r, !1).then(function () {
                            n.log("验证手机验证码成功"), e(!0)
                        }).catch(function (e) {
                            n.log("验证手机验证码失败:" + e.errMsg), t(e.errMsg)
                        })
                    })
                }, e.prototype.requestBindPhone = function (e, t) {
                    var n = this,
                        o = i.default.isValidPhoneNum(e);
                    if (!o.valid) return window['wx'] ?.showToast({
                        title: o.msg,
                        icon: "none"
                    }), Promise.reject(o.msg);
                    var r = {},
                        s = this.urlManager.bindPhoneUrl;
                    return r.phone = e, r.vcode = t, new Promise(function (t, o) {
                        n.request(s, r).then(function () {
                            n._appRunner.onBindPhone(e).then(function () {}), t(!0)
                        }).catch(function (e) {
                            n.log("绑定手机失败:" + e.errMsg), o(e)
                        })
                    })
                }, e.prototype.getShareToken = function () {
                    var e = this._fenbaoIDApp.getFenbaoID();
                    return e ? "srcFID=" + e : "srcFID=Natural"
                }, e.prototype.openCustomerServiceByWXACode = function () {
                    var e = {
                        account: this._userInfo.gameAccount,
                        accountToken: this._userInfo.token,
                        roleName: this._userInfo.roleInfo.roleName,
                        serverName: this._userInfo.roleInfo.serverName
                    };
                    console.error(e);
                    var t = this.urlManager.newQuestionWXACodeUrl + "?" + i.default.queryParams(e);
                    console.log(t), window['wx'] ?.previewImage({
                        urls: [t],
                        complete: function () {}
                    })
                }, e.prototype.openCustomerService = function () {
                    var e = this;
                    if (this.cxChannelApp && this.cxChannelApp.openCustomerService) return this.cxChannelApp.openCustomerService();
                    var t = {
                        account: this._userInfo.gameAccount,
                        roleName: this._userInfo.roleInfo.roleName,
                        serverName: this._userInfo.roleInfo.serverName
                    };
                    console.error(t);
                    var n = this._initResponse.game_settings.goCustomerServiceInfo;
                    n.type == I.OpenCustomerServiceType.DIRECT ? window['wx'] ?.setClipboardData({
                        data: new Date + "",
                        success: function () {
                            window['wx'] ?.navigateToMiniProgram({
                                appId: n.appConfig.appID,
                                path: n.appConfig.newQuestionPath + "?" + i.default.queryParams(t)
                            })
                        },
                        fail: function (e) {
                            console.log(e), window['wx'] ?.navigateToMiniProgram({
                                appId: n.appConfig.appID,
                                path: n.appConfig.newQuestionPath + "?" + i.default.queryParams(t)
                            })
                        }
                    }) : n.type == I.OpenCustomerServiceType.QR_CODE ? window['wx'] ?.setClipboardData({
                        data: i.default.queryParams(t),
                        success: function () {
                            var e = [];
                            e.push(n.appConfig.qrCodeUrl), window['wx'] ?.previewImage({
                                urls: e,
                                complete: function () {}
                            })
                        },
                        fail: function (t) {
                            console.log(t), e.openCustomerServiceByWXACode()
                        }
                    }) : n.type == I.OpenCustomerServiceType.PREVIEW_WXA_CODE && this.openCustomerServiceByWXACode()
                }, e.prototype.showMenu = function (e) {
                    this.cxChannelApp && this.cxChannelApp.showMenu ? this.cxChannelApp.showMenu(e) : this.uiApp && this.uiApp.showMenu(e)
                }, e.prototype.showModal = function (e, t, n) {
                    if (t) {
                        var o = this._urlManager.dialogConfigUrl,
                            r = {
                                name: t
                            };
                        this.getRequest(o, r).then(function (t) {
                            var o = t.config;
                            n && n(o), o.title && (e.title = o.title), o.content && (e.content = o.content), o.button1 && (e.cancelText = o.button1), o.button2 && (e.confirmText = o.button2), window['wx'] ?.showModal(e)
                        }).catch(function () {
                            window['wx'] ?.showModal(e)
                        })
                    } else window['wx'] ?.showModal(e)
                }, Object.defineProperty(e.prototype, "conf", {
                    get: function () {
                        return this._conf
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "urlManager", {
                    get: function () {
                        return this._urlManager
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "deviceInfo", {
                    get: function () {
                        return this._deviceInfo
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "db", {
                    get: function () {
                        return this._db
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "commonData", {
                    get: function () {
                        return this._commonData.fenbaoid = this.fenbaoIDApp.getFenbaoID(), this._commonData
                    },
                    set: function (e) {
                        this._commonData = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), e.prototype.copyCommonData = function () {
                    return Object.assign({}, this.commonData)
                }, Object.defineProperty(e.prototype, "openID", {
                    get: function () {
                        return this._openID
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "inListApp", {
                    get: function () {
                        return this._inListApp
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "payApp", {
                    get: function () {
                        return this._payApp
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "fenbaoIDApp", {
                    get: function () {
                        return this._fenbaoIDApp
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "wechatADApp", {
                    get: function () {
                        return this._wechatADApp
                    },
                    set: function (e) {
                        this._wechatADApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "requestUserInfoApp", {
                    get: function () {
                        return this._requestUserInfoApp
                    },
                    set: function (e) {
                        this._requestUserInfoApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "userInfo", {
                    get: function () {
                        return this._userInfo
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "uiApp", {
                    get: function () {
                        return this._uiApp
                    },
                    set: function (e) {
                        this._uiApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "h5GuideApp", {
                    get: function () {
                        return this._h5GuideApp
                    },
                    set: function (e) {
                        this._h5GuideApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "subApps", {
                    get: function () {
                        return this._subApps
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "console", {
                    get: function () {
                        return this._console
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "cxChannelApp", {
                    get: function () {
                        return this._channelApp
                    },
                    set: function (e) {
                        this._channelApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "callbackCP", {
                    set: function (e) {
                        this._callbackCP = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "otherParameterApp", {
                    get: function () {
                        return this._otherParameterApp
                    },
                    set: function (e) {
                        this._otherParameterApp = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }();
            t.CXSDK = O
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.WXInit = void 0;
            var o = function () {
                function e() {}
                return e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.beforeInit = function () {
                    return this.init()
                }, e.prototype.onInit = function () {
                    this.reportEvent({
                        eventType: "option",
                        eventSource: "launch",
                        eventExt: JSON.stringify(window['wx'] ?.getLaunchOptionsSync())
                    })
                }, e.prototype.reportEvent = function (e) {
                    this.sdk.reportEvent(e)
                }, e.prototype.setInList = function (e) {
                    this.sdk.inListApp.inList = e
                }, e.prototype.wxOnShow = function (e) {
                    this.reportEvent({
                        eventType: "onShow",
                        eventSource: e.scene,
                        eventExt: ""
                    }), this.reportEvent({
                        eventType: "option",
                        eventSource: "onshow",
                        eventExt: JSON.stringify(e)
                    })
                }, e.prototype.wxOnHide = function () {
                    this.reportEvent({
                        eventType: "onHide",
                        eventSource: "",
                        eventExt: ""
                    })
                }, e.prototype.registerOnShow = function () {
                    window['wx'] ?.onShow && window['wx'] ?.onShow(this.wxOnShow.bind(this)), window['wx'] ?.onAppShow && window['wx'] ?.onAppShow(this.wxOnShow.bind(this)), window['wx'] ?.onHide && window['wx'] ?.onHide(this.wxOnHide.bind(this)), window['wx'] ?.onAppHide && window['wx'] ?.onAppHide(this.wxOnHide.bind(this))
                }, e.prototype.init = function () {
                    var e = this;
                    try{
                        return this.sdk.deviceInfo.sysInfo.model.toLowerCase().indexOf("wetest") > -1 && this.setInList(!0), 
                        new Promise(function (t) {
                            e.handleLaunchOptions(null).then(function () {
                                e.registerOnShow(), t()
                            })
                        })
                    }catch{
                        return  this.setInList(!0), 
                        new Promise(function (t) {
                            e.handleLaunchOptions(null).then(function () {
                                e.registerOnShow(), t()
                            })
                        })
                    }
                }, e.prototype.handleLaunchOptions = function (e) {
                    var t = e;
                    null == t && (t = window['wx'] ?.getLaunchOptionsSync() || {
                        query:{},
                        referrerInfo:{
                        },
                        scene: 1090});
                    var n = t.scene;
                    1030 == n && this.setInList(!0);
                    var o = null;
                    t.query.scene && (o = decodeURIComponent(t.query.scene));
                    o && 0 == o.indexOf("orig_account:") && (this.originAccount = o.substring("orig_account:".length));
                    var r = t.query.fenbaoid,
                        i = t.query.weixinadinfo,
                        s = t.query.srcFID;
                    i && (s = i), t.referrerInfo && t.referrerInfo.appId && (s = t.referrerInfo.appId + "_" + t.referrerInfo.extraData);
                    var a = n + "";
                    if (s && (a = n + "_" + s), r) this.sdk.fenbaoIDApp.setAndroidFenbaoID(r), this.sdk.fenbaoIDApp.setIOSFenbaoID(r), this.sdk.fenbaoIDApp.setFenbaoID(r);
                    else if (o) {
                        var u = o.indexOf("cxhd:");
                        if (u >= 0) {
                            var c = (o = o.substring(u + 5, o.length)).split("_")[0].split("-");
                            this.sdk.fenbaoIDApp.setAndroidFenbaoID(c[0]), this.sdk.fenbaoIDApp.setIOSFenbaoID(c[1])
                        }
                    }
                    var p = t.query.gdt_vid;
                    return this.sdk.commonData.scene = a, this.sdk.commonData.ad_click_id = p, this.sdk.commonData.scene_id = n + "", Promise.resolve(null)
                }, e.prototype.name = function () {
                    return "WXInit"
                }, e
            }();
            t.WXInit = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.UrlManager = void 0;
            var o = function () {
                function e(e) {
                    this.defaultDomainName = "cxgame.net", this.hosts = [], this.curApiHost = "https://api.cxgame.net", this.conf = e, console.log(this.conf), this.conf.API_HOST && (this.curApiHost = this.conf.API_HOST)
                }
                return e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.name = function () {
                    return "UrlManager"
                }, e.prototype.beforeInit = function () {
                    var e = this;
                    return new Promise(function (t, n) {
                        e.checkHost().then(function (e) {
                            console.log("check host resolve:" + e), t()
                        }).catch(n)
                    })
                }, e.prototype.log = function () {
                    for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                    this.sdk && this.sdk.log.apply(this.sdk, arguments)
                }, e.prototype.checkHost = function () {
                    var e = this,
                        t = this;
                    return new Promise(function (n, o) {
                        if (t.conf.API_HOST) n(t.conf.API_HOST);
                        else {
                            var r = t.defaultDomainName;
                            t.conf.DOMAIN_NAME && (r = t.conf.DOMAIN_NAME), t.hosts.push("https://api." + r), t.hosts.push("https://dns1.api." + r), t.hosts.push("https://dns2.api." + r);
                            var i = !1,
                                s = 0,
                                a = function (r) {
                                    var a = e.hosts[r];
                                    t.curApiHost = a;
                                    var u = t.checkNetWorkUrl;
                                    window['wx'] ?.request({
                                        url: u,
                                        method: "GET",
                                        success: function () {
                                            e.log("network success " + a), 0 == i && (e.log("use host " + a), e.curApiHost = a, i = !0, n(e.curApiHost))
                                        },
                                        fail: function () {
                                            e.log("network fail " + a), ++s >= e.hosts.length && o("no useful host")
                                        },
                                        complete: function () {}
                                    })
                                };
                            for (var u in t.hosts) a(u)
                        }
                    })
                }, Object.defineProperty(e.prototype, "apiHost", {
                    get: function () {
                        if (this.conf.API_HOST) return this.conf.API_HOST;
                        var e = this.defaultDomainName;
                        return this.conf.DOMAIN_NAME && (e = this.conf.DOMAIN_NAME), "https://api." + e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "cdnHost", {
                    get: function () {
                        var e = this.defaultDomainName;
                        return this.conf.DOMAIN_NAME && (e = this.conf.DOMAIN_NAME), "https://cdn." + e
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "checkNetWorkUrl", {
                    get: function () {
                        return this.apiHost + "/app/sdk/v1/echo?word=1"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "oauthUrl", {
                    get: function () {
                        return this.apiHost + "/app/sdk/v1/third-oauth-info"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "initUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/ukXaF"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "loginUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/S9j35"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "purchaseUrl", {
                    get: function () {
                        return this.apiHost + "/YrjhK/3hfdp"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "payInfoUrl", {
                    get: function () {
                        return this.apiHost + "/YrjhK/3hfdp"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "reportRoleInfoUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/2onyw"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "reportEventUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/HSOGu"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "queryOrderResultUrl", {
                    get: function () {
                        return this.apiHost + "/YrjhK/oSSN1"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "reportWXUserInfoUrl", {
                    get: function () {
                        return this.apiHost + "/app/sdk/v1/wx/report-userinfo"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "reportCommonEvent2V1Url", {
                    get: function () {
                        return this.apiHost + "/VGXup/OJPny"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "wxSubMsgSuccessUrl", {
                    get: function () {
                        return this.apiHost + "/app/sdk/v1/wx/sub-msg"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "refreshUserInfoUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/LJGei"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "checkAgreementUpgradeUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/8Mp0b"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "agreeAgreementUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/u1WTp"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "dialogConfigUrl", {
                    get: function () {
                        return this.apiHost + "/config/get/dialog"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "billboardUrl", {
                    get: function () {
                        return this.apiHost + "/billboard/get"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "sendPhoneVerifyCodeUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/HpiDp"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "verifyPhoneVCodeUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/ijenc"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "bindPhoneUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/MRL7y"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "recommendSettingsUrl", {
                    get: function () {
                        return this.apiHost + "/recommend/settings"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "recommendListUrl", {
                    get: function () {
                        return this.apiHost + "/recommend/list"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "getLoginPackCodeUrl", {
                    get: function () {
                        return this.apiHost + "/CuT2m/ajP3K"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "newQuestionWXACodeUrl", {
                    get: function () {
                        return this.apiHost + "/customer_service/get/new-question-wxacode"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "floatMenuVisibleConfigUrl", {
                    get: function () {
                        return this.apiHost + "/float-menu/visible-config"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "switchGameConfigUrl", {
                    get: function () {
                        return this.apiHost + "/config/get/x8qolI"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "paySwitchUrl", {
                    get: function () {
                        return this.apiHost + "/2GqLk/O6XSI"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "queryBlockOrder", {
                    get: function () {
                        return this.apiHost + "/7R0Jz/oSSN1"
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "reportEventWithContentUrl", {
                    get: function () {
                        return this.apiHost + "/VGXup/RucH6"
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }();
            t.UrlManager = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.DeviceInfo = void 0;
            var o = function () {
                function e() {
                    this._sysInfo = window['wx']?.getSystemInfoSync()||{system: "iOS 10.0.1"}
                }
                return Object.defineProperty(e.prototype, "sysInfo", {
                    get: function () {
                        return this._sysInfo
                    },
                    enumerable: !1,
                    configurable: !0
                }), Object.defineProperty(e.prototype, "os", {
                    get: function () {
                        return this._sysInfo.system.split(" ")[0]
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }();
            t.DeviceInfo = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.DB = void 0;
            var o = function () {
                function e() {
                    this.storageMap = {}
                }
                return e.prototype.getID = function (e) {
                    if (null != this.storageMap[e]) return this.storageMap[e];
                    var t = window['wx'] ?.getStorageSync(e);
                    return this.storageMap[e] = t, null == t && (t = null), t
                }, e.prototype.setID = function (e, t) {
                    return window['wx'] ?.setStorageSync(e, t), this.storageMap[e] = t, t
                }, e
            }();
            t.DB = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.ConfCommonDataApp = void 0;
            var o = n(3),
                r = n(1),
                i = n(0),
                s = function () {
                    function e() {
                        this.systemInfo = window['wx'] ?.getSystemInfoSync()||{system: "iOS 10.0.1"}
                    }
                    return e.prototype.getDeviceID = function () {
                        var e = i.StoreKey.DEVICE_ID,
                            t = this.sdk.db.getID(e);
                        return t || (t = r.default.generateUUID().toUpperCase(), this.sdk.db.setID(e, t)), t
                    }, e.prototype.onSDKCreate = function () {
                        var e = this.systemInfo.system.split(" ")[0],
                            t = r.default.getOsCodeByName(e);
                        this.configGameKey(t), this.sdk.commonData.sdk_type = i.SDKType.JS_WEIXIN_MINI_GAME, this.sdk.commonData.os = t, this.sdk.commonData.gamepkgname = this.sdk.conf.APP_ID, this.sdk.commonData.gamepkgversion = this.sdk.conf.APP_VERSION, this.sdk.commonData.gamebuildversion = this.sdk.conf.APP_VERSION
                    }, e.prototype.configGameKey = function (e) {
                        var t = this.sdk.conf.GAMEKEY;
                        return t || (e == i.OSCodeEnum.OS_CODE_ANDROID ? t = this.sdk.conf.GAMEKEY_ANDROID : e == i.OSCodeEnum.OS_CODE_IOS && (t = this.sdk.conf.GAMEKEY_IOS)), t && (this.sdk.commonData.game_key = t), t
                    }, e.prototype.onSelectOs = function (e) {
                        var t = r.default.getOsNameByCode(e);
                        this.sdk.db.setID(i.StoreKey.CX_NOT_FOUND_GAME_KEY_SELECT_OS, t), this.configGameKey(e), window['wx'] ?.showModal({
                            title: "提示",
                            content: "您已选择以" + r.default.getOsTipsByCode(e) + "系统账号进入游戏，如需更改，请删除游戏后再次进入",
                            showCancel: !1
                        })
                    }, e.prototype.manualSelectOS = function () {
                        var e = this;
                        if (this.sdk.commonData.game_key) return Promise.resolve();
                        var t = this.sdk.db.getID(i.StoreKey.CX_NOT_FOUND_GAME_KEY_SELECT_OS);
                        return !t || "Android" != t && "iOS" != t ? new Promise(function (t) {
                            window['wx'] ?.showModal({
                                title: "提示",
                                content: "请选择您的手机微信系统版本，如已经在本游戏有账号记录的，请务必选择对应的系统",
                                cancelText: "安卓",
                                cancelColor: "#000000",
                                confirmText: "iOS",
                                confirmColor: "#000000",
                                success: function (n) {
                                    n.confirm ? (e.onSelectOs(i.OSCodeEnum.OS_CODE_IOS), t()) : n.cancel && (e.onSelectOs(i.OSCodeEnum.OS_CODE_ANDROID), t())
                                }
                            })
                        }) : (this.configGameKey(r.default.getOsCodeByName(t)), Promise.resolve())
                    }, e.prototype.afterPay = function () {}, e.prototype.beforeInit = function () {
                        var e = this;
                        return new Promise(function (t) {
                            e.manualSelectOS().then(function () {
                                var n = e;
                                e.sdk.commonData || (e.sdk.commonData = new o.CommonData);
                                var s, a, u = e.systemInfo.system.split(" ")[0],
                                    c = new Promise(function (e) {
                                        window['wx'] ?.getBatteryInfo({
                                            success: function (e) {
                                                s = e.level, a = e.isCharging
                                            },
                                            fail: function () {},
                                            complete: function () {
                                                e()
                                            }
                                        })
                                    }),
                                    p = r.default.getOsCodeByName(u),
                                    f = e.getDeviceID();
                                e.sdk.commonData.uuid = f, e.sdk.commonData.os = r.default.getOsCodeByName(u), e.sdk.commonData.deviceid1 = f, e.sdk.commonData.deviceid2 = f, p === i.OSCodeEnum.OS_CODE_ANDROID ? (e.sdk.commonData.imsi = f, e.sdk.commonData.devicemanufacturer = "", e.sdk.commonData.mac_address = "", e.sdk.commonData.cpuabi = "", e.sdk.commonData.fenbaoid = e.sdk.fenbaoIDApp.getFenbaoID()) : p === i.OSCodeEnum.OS_CODE_IOS && (e.sdk.commonData.fenbaoid = e.sdk.fenbaoIDApp.getFenbaoID()), e.sdk.commonData.gamepkgname = e.sdk.conf.APP_ID, e.sdk.commonData.gamepkgversion = e.sdk.conf.APP_VERSION, e.sdk.commonData.gamebuildversion = e.sdk.conf.APP_VERSION, e.sdk.commonData.carrier = e.systemInfo.version + "_" + e.systemInfo.SDKVersion, e.sdk.commonData.devicemodel = e.systemInfo.model, e.sdk.commonData.screensize = e.systemInfo.screenHeight + "x" + e.systemInfo.screenWidth, e.sdk.commonData.osversion = e.systemInfo.system.split(" ")[1], e.sdk.commonData.sdkversion = i.CXSDK_VERSION, e.sdk.commonData.batterylevel = s + "", e.sdk.commonData.batterystate = a;
                                var l = new Promise(function (e, t) {
                                    window['wx'] ?.getNetworkType({
                                        success: function (e) {
                                            n.sdk.commonData.netstate = e.networkType
                                        },
                                        fail: function () {},
                                        complete: function () {
                                            e()
                                        }
                                    })
                                });
                                Promise.all([c, l]).then(function () {
                                    t()
                                })
                            })
                        })
                    }, e.prototype.beforePay = function () {}, e.prototype.onInit = function () {}, e.prototype.onLogin = function (e) {
                        this.sdk.commonData.token = e.token
                    }, e.prototype.onPaySuccess = function () {}, e.prototype.setSDK = function (e) {
                        this.sdk = e, window['wx'] ?.onNetworkStatusChange(function (t) {
                            e.commonData.netstate = t.networkType
                        })
                    }, e.prototype.name = function () {
                        return "ConfCommonDataApp"
                    }, e
                }();
            t.ConfCommonDataApp = s
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.AutoInitLoginApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.afterInit = function () {
                    console.log("auto login"), this.sdk.login()
                }, e.prototype.onLogin = function () {}, e.prototype.onPaySuccess = function () {}, e.prototype.onSDKCreate = function () {
                    console.log("auto init"), this.sdk.init()
                }, e.prototype.name = function () {
                    return "AutoInitLoginApp"
                }, e
            }();
            t.AutoInitLoginApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CallbackApp = void 0;
            var o = function () {
                    return function (e) {
                        this.code = 200, this.message = "初始化成功", this.inList = e.in_list, this.isReviewVer = e.is_review_ver, this.settings = e.game_settings, this.otherParameter = e.game_diy_param;
                        var t = null;
                        try {
                            t = window['wx'] ?.getSystemInfoSync().system.split(" ")[0]
                        } catch (e) {}
                        this.os = t
                    }
                }(),
                r = function () {
                    return function (e, t) {
                        this.code = 200, this.message = "登录成功", this.uid = e.uid, this.token = e.token, this.account = e.game_account, this.newUser = e.new_user;
                        var n = null;
                        try {
                            n = window['wx'] ?.getSystemInfoSync().system.split(" ")[0]
                        } catch (e) {}
                        this.os = n, this.openid = t
                    }
                }(),
                i = function () {
                    function e() {
                        this.onInitCallbacks = [], this.onLoginCallbacks = []
                    }
                    return e.prototype.afterPay = function () {}, e.prototype.beforeInit = function () {}, e.prototype.beforeLogin = function () {}, e.prototype.beforePay = function () {}, e.prototype.addOnInitCallback = function (e) {
                        if (this._initResponse) {
                            var t = new o(this._initResponse);
                            t.inList = this.sdk.inListApp.inList, e && e(t)
                        } else this.onInitCallbacks.push(e)
                    }, e.prototype.onInit = function (e) {
                        this._initResponse = e;
                        var t = new o(this._initResponse);
                        for (var n in this.onInitCallbacks) {
                            var r = this.onInitCallbacks[n];
                            r && r(t)
                        }
                        this.onInitCallbacks = []
                    }, e.prototype.addOnLoginCallback = function (e) {
                        if (this._loginResponse) {
                            var t = new r(this._loginResponse, this.sdk.openID);
                            e && e(t)
                        } else this.onLoginCallbacks.push(e)
                    }, e.prototype.onLogin = function (e) {
                        this._loginResponse = e;
                        var t = new r(this._loginResponse, this.sdk.openID);
                        for (var n in this.onLoginCallbacks) {
                            var o = this.onLoginCallbacks[n];
                            o && o(t)
                        }
                        this.onLoginCallbacks = []
                    }, e.prototype.onPaySuccess = function () {}, e.prototype.onSDKCreate = function () {}, e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.name = function () {
                        return "CallbackApp"
                    }, e
                }();
            t.CallbackApp = i
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.UserInfoProxyHandler = t.UserInfo = void 0;
            var o = n(0),
                r = function () {
                    function e(e) {
                        return this.watchMap = {}, this._db = e, this.initRoleInfo(), new Proxy(this, new i)
                    }
                    return e.prototype.watch = function (e, t) {
                        this.watchMap[e] || (this.watchMap[e] = []), this.watchMap[e].push(t)
                    }, e.prototype.initRoleInfo = function () {
                        this._db && (this._roleInfo = this._db.getID(o.StoreKey.ROLE_INFO)), this._roleInfo || (this._roleInfo = {
                            roleId: null,
                            roleLevel: null,
                            roleName: null,
                            rolePower: -1,
                            serverId: null,
                            serverName: null,
                            roleVip: -1
                        })
                    }, Object.defineProperty(e.prototype, "roleInfo", {
                        get: function () {
                            return this._roleInfo
                        },
                        enumerable: !1,
                        configurable: !0
                    }), e.prototype.saveRoleInfo = function () {
                        this._roleInfo && this._db && this._db.setID(o.StoreKey.ROLE_INFO, this._roleInfo)
                    }, e.prototype.setRoleInfoByPurchaseParameter = function (e) {
                        this._roleInfo || this.initRoleInfo(), this._roleInfo.roleId = e.roleId, this._roleInfo.roleLevel = e.roleLevel, this._roleInfo.roleName = e.roleName, this._roleInfo.serverId = e.serverId, this._roleInfo.serverName = e.serverName, this.saveRoleInfo()
                    }, e.prototype.setRoleInfo = function (e) {
                        this._roleInfo.roleId = e.roleId, this._roleInfo.roleLevel = e.roleLevel, this._roleInfo.roleName = e.roleName, this._roleInfo.rolePower = e.rolePower, this._roleInfo.serverId = e.serverId, this._roleInfo.serverName = e.serverName, this._roleInfo.roleVip = e.roleVip, this.saveRoleInfo()
                    }, e
                }();
            t.UserInfo = r;
            var i = function () {
                function e() {}
                return e.prototype.set = function (e, t, n, o) {
                    var r = Reflect.set(e, t, n, o);
                    return "string" == typeof t && e.watchMap[t] && e.watchMap[t].forEach(function (e) {
                        try {
                            e(n)
                        } catch (e) {
                            console.error(e)
                        }
                    }), r
                }, e
            }();
            t.UserInfoProxyHandler = i
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.FenbaoIDApp = void 0;
            var o = n(0),
                r = n(1),
                i = function () {
                    function e() {
                        this.systemInfo = window['wx'] ?.getSystemInfoSync()||{system: "iOS 10.0.1"}
                    }
                    return e.prototype.onInit = function (e) {
                        this.initResonse = e, this.gameSettings = e.game_settings
                    }, e.prototype.onLogin = function (e) {
                        var t = e.fenbao_id;
                        if (t && "" != t) {
                            var n = this.systemInfo.system.split(" ")[0],
                                i = r.default.getOsCodeByName(n);
                            i == o.OSCodeEnum.OS_CODE_ANDROID ? this.setAndroidFenbaoID(t) : i == o.OSCodeEnum.OS_CODE_IOS ? this.setIOSFenbaoID(t) : this.setFenbaoID(t)
                        }
                    }, e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.setFenbaoID = function (e) {
                        this.fenbaoID = e, this.sdk.db.setID(o.StoreKey.FENBAO, e)
                    }, e.prototype.setAndroidFenbaoID = function (e) {
                        this.androidFenbaoID = e, this.sdk.db.setID(o.StoreKey.FENBAO_ANDROID, e), this.sdk.db.setID(o.StoreKey.FENBAO_ANDROID_V1, e), this.setFenbaoID(e)
                    }, e.prototype.setIOSFenbaoID = function (e) {
                        this.iOSFenbaoID = e, this.sdk.db.setID(o.StoreKey.FENBAO_IOS, e), this.setFenbaoID(e)
                    }, e.prototype.getFenbaoID = function () {
                        var e = this.sdk.deviceInfo.os,
                            t = null;
                        return o.OSName.ANDROID === e ? t = this.androidFenbaoID : o.OSName.IOS == e && (t = this.iOSFenbaoID), t || (t = this.fenbaoID), t
                    }, e.prototype.onSDKCreate = function () {
                        this.androidFenbaoID = this.sdk.db.getID(o.StoreKey.FENBAO_ANDROID), this.iOSFenbaoID = this.sdk.db.getID(o.StoreKey.FENBAO_IOS), this.fenbaoID = this.sdk.db.getID(o.StoreKey.FENBAO)
                    }, e.prototype.name = function () {
                        return "FenbaoIDApp"
                    }, e
                }();
            t.FenbaoIDApp = i
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.AppRunner = void 0;
            var o = function () {
                    function e(e, t, n) {
                        this.app = [], this.index = 0, this.results = [], this.app = e, this.func = t, this.logFunc = n
                    }
                    return e.prototype.log = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        this.logFunc && this.logFunc.apply(this.logFunc, arguments)
                    }, e.prototype.then = function () {
                        if (this.results.push(arguments), this.index++, this.index != this.app.length) {
                            var e = this.app[this.index],
                                t = null;
                            e[this.func] && (this.log(e.name() + " run " + this.func), t = e[this.func].apply(e, this.arguments)), Promise.all([t]).then(this.then.bind(this)).catch(this.catch.bind(this))
                        } else this.resolve(this.results)
                    }, e.prototype.catch = function () {
                        var e = this.app[this.index];
                        this.log(e.name() + " run " + this.func + " catch"), console.error.apply(console, arguments), this.reject(arguments)
                    }, e.prototype.promise = function (e, t) {
                        this.resolve = e, this.reject = t;
                        var n = this.app[this.index],
                            o = null;
                        n[this.func] && (this.log(n.name() + " run " + this.func), o = n[this.func].apply(n, this.arguments)), Promise.all([o]).then(this.then.bind(this)).catch(this.catch.bind(this))
                    }, e.prototype.run = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        return this.arguments = arguments, new Promise(this.promise.bind(this))
                    }, e
                }(),
                r = function () {
                    function e(e, t, n) {
                        this.app = [], this.app = e, this.func = t, this.logFunc = n
                    }
                    return e.prototype.log = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        this.logFunc && this.logFunc.apply(this.logFunc, arguments)
                    }, e.prototype.run = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        this.arguments = arguments;
                        var n = [];
                        for (var o in this.app) {
                            var r = this.app[o];
                            if (r[this.func]) {
                                this.log(r.name() + " run " + this.func);
                                var i = r[this.func].apply(r, this.arguments);
                                n.push(i)
                            }
                        }
                        return new Promise(function (e, t) {
                            Promise.all(n).then(e).catch(function (e) {
                                console.error(e), t()
                            })
                        })
                    }, e
                }(),
                i = function () {
                    function e() {}
                    return e.prototype.afterPay = function () {}, e.prototype.beforeInit = function () {
                        return new r(this._subApps, "beforeInit", this.sdk.log.bind(this.sdk)).run()
                    }, e.prototype.onInit = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.onInit && t.push(o.onInit(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.afterInit = function () {
                        var e = [];
                        for (var t in this._subApps) {
                            var n = this._subApps[t];
                            n.afterInit && e.push(n.afterInit())
                        }
                        return Promise.all(e)
                    }, e.prototype.beforeLogin = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.beforeLogin && t.push(o.beforeLogin(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.onLogin = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.onLogin && t.push(o.onLogin(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.beforePay = function (e) {
                        return new o(this._subApps, "beforePay", this.sdk.log.bind(this.sdk)).run(e)
                    }, e.prototype.onPay = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.onPay && t.push(o.onPay(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.beforeReportRoleInfo = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.beforeReportRoleInfo && t.push(o.beforeReportRoleInfo(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.onReportRoleInfo = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.onReportRoleInfo && t.push(o.onReportRoleInfo(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.onPaySuccess = function (e) {
                        for (var t in this._subApps) {
                            var n = this._subApps[t];
                            n.onPaySuccess && n.onPaySuccess(e)
                        }
                    }, e.prototype.onBindPhone = function (e) {
                        var t = [];
                        for (var n in this._subApps) {
                            var o = this._subApps[n];
                            o.onBindPhone && t.push(o.onBindPhone(e))
                        }
                        return Promise.all(t)
                    }, e.prototype.onSDKCreate = function () {
                        for (var e in this._subApps) {
                            var t = this._subApps[e];
                            t.onSDKCreate && t.onSDKCreate()
                        }
                    }, e.prototype.setSDK = function (e) {
                        this.sdk = e, this._subApps = e.subApps
                    }, e.prototype.name = function () {
                        return "AppRunner"
                    }, e
                }();
            t.AppRunner = i
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.OnlineTimeApp = void 0;
            var o = function () {
                function e() {
                    this.onlineTimer = null
                }
                return e.prototype.name = function () {
                    return "OnlineTimeApp"
                }, e.prototype.onLogin = function (e) {
                    var t = this;
                    null != this.onlineTimer && clearInterval(this.onlineTimer), this.onlineTimer = setInterval(function () {
                        t.sdk.log("report online log"), t.sdk.reportCommonEvent("online")
                    }, 6e4)
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e
            }();
            t.OnlineTimeApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CXConsole = void 0;
            var o = function () {
                function e() {
                    this._logLog = !1
                }
                return e.prototype.log = function (e) {
                    this._logLog && console.log(e)
                }, e.prototype.warn = function () {
                    for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                    console.warn.apply(console.warn, arguments)
                }, e.prototype.debug = function () {
                    for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                    console.debug.apply(console.debug, arguments)
                }, e.prototype.error = function () {
                    for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                    console.error.apply(console.error, arguments)
                }, Object.defineProperty(e.prototype, "logLog", {
                    set: function (e) {
                        this._logLog = e
                    },
                    enumerable: !1,
                    configurable: !0
                }), e
            }();
            t.CXConsole = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.CXLaunchActionApp = void 0;
            var o = n(0),
                r = function () {
                    function e() {}
                    return e.prototype.name = function () {
                        return "CXLaunchActionApp"
                    }, e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.onLogin = function (e) {
                        var t = this;
                        setTimeout(function () {
                            t.processAction()
                        }, 1e3)
                    }, e.prototype.processAction = function () {
                        var e = window['wx'] ?.getLaunchOptionsSync().query[o.LaunchQueryKey.LAUNCH_ACTION];
                        e && this[e] && this[e]()
                    }, e.prototype.test = function () {
                        console.log("Launch Action test")
                    }, e.prototype.openVipGuide = function () {
                        var e = this,
                            t = function () {
                                window['wx'] ?.offTouchEnd(t), console.log("Launch Action openVipGuide");
                                var n = e.sdk.findSubAppByName("VIPApp");
                                n.isVIP().then(function (e) {
                                    e && n.openVIPGuide().then()
                                })
                            };
                        window['wx'] ?.onTouchEnd(t)
                    }, e
                }();
            t.CXLaunchActionApp = r
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.DouYinAdapterApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "DouYinAdapterApp"
                }, e.prototype.beforeLogin = function () {
                    return this.sdk.loginChannel = 49, Promise.resolve()
                }, e.prototype.adapt = function () {
                    this.sdk.getOpenIDChannelCode = 49;
                    var e = window['wx'] ?.login;
                    window['wx'] && (window['wx'].login = function (t) {
                        var n = t.success;
                        t.force = !1, t.success = function (e) {
                            var t = {
                                code: e.code,
                                anonymousCode: e.anonymousCode
                            };
                            e.code = JSON.stringify(t), n && n(e)
                        }, e(t)
                    })
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e, this.adapt()
                }, e
            }();
            t.DouYinAdapterApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.InListApp = void 0;
            var o = n(0),
                r = function () {
                    function e() {
                        this._canPayWithCX = !1, this._inList = !1
                    }
                    return Object.defineProperty(e.prototype, "inList", {
                        get: function () {
                            return this._inList
                        },
                        set: function (e) {
                            e && (this._inList = e, this.sdk.db.setID(o.StoreKey.IN_LIST, !0))
                        },
                        enumerable: !1,
                        configurable: !0
                    }), e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.log = function () {
                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                        this.sdk && this.sdk.log.apply(this.sdk, arguments)
                    }, e.prototype.canPay = function () {
                        return !!this.canPayWithCX() || !!this.sdk.cxChannelApp.canPay && this.sdk.cxChannelApp.canPay()
                    }, e.prototype.canPayWithCX = function () {
                        return !this._inList && this._canPayWithCX
                    }, e.prototype.onSDKCreate = function () {
                        this.inList = this.sdk.db.getID(o.StoreKey.IN_LIST)
                    }, e.prototype.onInit = function (e) {
                        this.initResonse = e, this.gameSettings = e.game_settings, this._canPayWithCX = e.age, console.debug("init age-r:" + e["age-r"]), this.inList = e.in_list
                    }, e.prototype.onLogin = function (e) {
                        this.thirdLoginExtInfo = e.third_login_ext, this._canPayWithCX = e.age, console.debug("login age-r:" + e["age-r"])
                    }, e.prototype.onReportRoleInfo = function (e) {
                        this._canPayWithCX = e.age, console.debug("report role info age-r:" + e["age-r"])
                    }, e.prototype.name = function () {
                        return "InListApp"
                    }, e
                }();
            t.InListApp = r
        },
        function (e, t, n) {
            "use strict";
            var o = this && this.__spreadArrays || function () {
                for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
                var o = Array(e),
                    r = 0;
                for (t = 0; t < n; t++)
                    for (var i = arguments[t], s = 0, a = i.length; s < a; s++, r++) o[r] = i[s];
                return o
            };
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.KuaiShouAdapterApp = void 0;
            var r = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "KuaiShouAdapterApp"
                }, e.prototype.beforeLogin = function () {
                    return this.sdk.loginChannel = 101, Promise.resolve()
                }, e.prototype.adapt = function () {
                    this.sdk.getOpenIDChannelCode = 101;
                    var e = window['wx'] ?.request;
                    if (window['wx']) {
                        window['wx'].request = function (t) {
                            for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
                            if ("post" === t.method.toLowerCase() && "application/x-www-form-urlencoded" === t.header["content-type"] && "string" != typeof t.data) {
                                var i = [];
                                for (var s in t.data) i.push(encodeURIComponent(s) + "=" + encodeURIComponent(t.data[s]));
                                t.data = i.join("&")
                            }
                            return e.apply(wx, o([t], n))
                        }
                    }
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e, this.adapt()
                }, e
            }();
            t.KuaiShouAdapterApp = r
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.RecommendApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "RecommendApp"
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.getSettings = function () {
                    var e = this;
                    return this.recommendSettings ? Promise.resolve(this.recommendSettings) : new Promise(function (t, n) {
                        e.requestSettings().then(function (n) {
                            e.recommendSettings = n, t(n)
                        }).catch(n)
                    })
                }, e.prototype.requestSettings = function () {
                    var e = this,
                        t = {
                            game_key: this.sdk.commonData.game_key,
                            token: this.sdk.userInfo.token
                        },
                        n = this.sdk.urlManager.recommendSettingsUrl;
                    return new Promise(function (o, r) {
                        e.sdk.request(n, t, !1).then(function (e) {
                            o(e.settings)
                        }).catch(function (e) {
                            r(e.errMsg)
                        })
                    })
                }, e.prototype.available = function () {
                    var e = this;
                    return new Promise(function (t, n) {
                        e.getSettings().then(function () {
                            var n = e.recommendSettings.show;
                            n && e.recommendSettings.requireCanPay && (n = e.sdk.inListApp.canPay()), t(n)
                        }).catch(n)
                    })
                }, e.prototype.wrapIcon = function (e) {
                    return {
                        appID: e.appID,
                        name: e.name,
                        icon: this.sdk.urlManager.cdnHost + "/" + e.icon,
                        path: e.path
                    }
                }, e.prototype.list = function () {
                    var e = this,
                        t = {
                            game_key: this.sdk.commonData.game_key,
                            token: this.sdk.userInfo.token
                        },
                        n = this.sdk.urlManager.recommendListUrl;
                    return new Promise(function (o, r) {
                        e.sdk.request(n, t, !1).then(function (t) {
                            o(t.recommend_list.map(e.wrapIcon, e))
                        }).catch(function (e) {
                            r(e.errMsg)
                        })
                    })
                }, e.prototype.reportClickItem = function (e) {
                    this.sdk.reportEvent({
                        eventType: "GameBoxClick",
                        eventSource: "WXMiniGameRecommend",
                        eventExt: JSON.stringify(e)
                    })
                }, e.prototype.reportShowPanel = function () {
                    this.sdk.reportEvent({
                        eventType: "GameBoxUnfold",
                        eventSource: "WXMiniGameRecommend",
                        eventExt: ""
                    })
                }, e
            }();
            t.RecommendApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.VIPApp = void 0;
            var o = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "VIPApp"
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.isVIP = function () {
                    var e = this;
                    return this.sdk.uiApp ? new Promise(function (t) {
                        e.sdk.uiApp.refreshVIPInfo().then(function (e) {
                            t(e.showVIP)
                        })
                    }) : Promise.resolve(!1)
                }, e.prototype.openVIPGuide = function () {
                    return this.sdk.uiApp ? (this.sdk.uiApp.openVipAckApp(), Promise.resolve()) : Promise.resolve()
                }, e.prototype.visible = function () {
                    console.info("call visible");
                    var e = this.sdk.uiApp.config.showVIP && this.sdk.uiApp.menuItemVisible("vip");
                    return console.info("call visible end", e), e
                }, e.prototype.visibleAsync = function () {
                    var e = this;
                    return new Promise(function (t) {
                        Promise.all([e.sdk.uiApp.refreshVIPInfo(), e.sdk.uiApp.refreshFloatBallVisibleConfig()]).then(function () {
                            console.info("visibleAsync call visible");
                            var n = e.visible();
                            console.info("visibleAsync call visible end", n), t(n)
                        })
                    })
                }, e
            }();
            t.VIPApp = o
        },
        function (e, t, n) {
            "use strict";
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.ConfigApp = void 0;
            var o = n(0),
                r = n(2),
                i = function () {
                    function e() {}
                    return e.prototype.name = function () {
                        return "ConfigApp"
                    }, e.prototype.setSDK = function (e) {
                        this.sdk = e
                    }, e.prototype.request = function () {
                        var e = this.sdk.userInfo.gameAccount,
                            t = {
                                account: e,
                                wxLaunchOptions: window['wx'] ?.getLaunchOptionsSync(),
                                commonData: this.sdk.copyCommonData()
                            },
                            n = this.sdk.urlManager.switchGameConfigUrl + "?account=" + e;
                        return new Promise(function (e, o) {
                            r.default.postRequest(n, t).then(function (t) {
                                if (200 == t.statusCode) {
                                    var n = t.data,
                                        r = n.message;
                                    200 != n.code ? o({
                                        statusCode: t.statusCode,
                                        code: n.code,
                                        errMsg: r
                                    }) : e(n.data)
                                } else o({
                                    statusCode: t.statusCode,
                                    code: -1,
                                    errMsg: "server error"
                                })
                            })
                        })
                    }, e.prototype.switchGameConfig = function () {
                        var e = this;
                        return new Promise(function (t) {
                            e.request().then(function (n) {
                                e.sdk.log(n), t(n)
                            }).catch(function () {
                                t({
                                    game: o.SwitchGameEnum.MiniGame
                                })
                            })
                        })
                    }, e
                }();
            t.ConfigApp = i
        },
        function (e, t, n) {
            "use strict";
            var o;
            Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.EventReporterApp = void 0,
                function (e) {
                    e.EVENT_ENTER_STAGE = "enterStage", e.EVENT_EXIT_STAGE = "exitStage", e.EVENT_AD_SHOW_AD_Button = "showAdButton", e.EVENT_AD_CLICK_AD = "clickAd", e.EVENT_AD_SHOW_AD = "showAd", e.EVENT_AD_COMPLETE_AD = "completeAd"
                }(o || (o = {}));
            var r = function () {
                function e() {}
                return e.prototype.name = function () {
                    return "EventReporterApp"
                }, e.prototype.setSDK = function (e) {
                    this.sdk = e
                }, e.prototype.clickAd = function (e) {
                    this.request(o.EVENT_AD_CLICK_AD, e).then()
                }, e.prototype.completeAd = function (e) {
                    this.request(o.EVENT_AD_COMPLETE_AD, e).then()
                }, e.prototype.enterStage = function (e) {
                    this.request(o.EVENT_ENTER_STAGE, e).then()
                }, e.prototype.exitStage = function (e) {
                    this.request(o.EVENT_EXIT_STAGE, e).then()
                }, e.prototype.showAd = function (e) {
                    this.request(o.EVENT_AD_SHOW_AD, e).then()
                }, e.prototype.showAdButton = function (e) {
                    this.request(o.EVENT_AD_SHOW_AD_Button, e).then()
                }, e.prototype.request = function (e, t) {
                    var n = this,
                        o = this.sdk.urlManager.reportEventWithContentUrl,
                        r = {};
                    return r.game_account = this.sdk.userInfo.gameAccount, r.account = this.sdk.userInfo.gameAccount, r.event = e, r.content = t, new Promise(function (e, t) {
                        n.sdk.request(o, r).then(function (t) {
                            e(t)
                        }).catch(function (e) {
                            n.sdk.log("CX上报日志失败:" + e.errMsg), t(e)
                        })
                    })
                }, e
            }();
            t.EventReporterApp = r
        }
    ])
    // 这里是您想要导出的功能
    // 将 exports 对象挂载到全局对象
    for (var key in exports) {
        if (exports.hasOwnProperty(key)) {
            global[key] = exports[key];
        }
    }
})(window);